Merge pull request #11 from hermanjunge/patch-1

Update README.md
This commit is contained in:
Dave Grijalva 2014-03-12 11:11:08 -07:00
commit c9e6fdb7e7
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ This library is considered production ready. Feedback and feature requests are
## Create a token
```go
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)