Commit c9e6fdb7 authored by Dave Grijalva's avatar Dave Grijalva

Merge pull request #11 from hermanjunge/patch-1

parents 54a180ee bd53e37c
......@@ -20,7 +20,7 @@ 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)
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