Commit bd53e37c authored by Herman Junge's avatar Herman Junge


`jwt.New()` only returns one parameter, `*Token`
parent bdb2a327
......@@ -20,10 +20,10 @@ This library is considered production ready. Feedback and feature requests are
## Create a token
token, _ := jwt.New(jwt.GetSigningMethod("HS256"))
token := jwt.New(jwt.GetSigningMethod("HS256"))
token.Claims["foo"] = "bar"
token.Claims["exp"] = time.Now().Add(time.Hour * 72).Unix()
tokenString, err := token.SignedString(mySigningKey)
Documentation can be found [here](
\ No newline at end of file
Documentation can be found [here](
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment