Merge pull request #54 from thatderek/patch-1

Updated token creation example to use the proper method.
This commit is contained in:
Dave Grijalva 2015-01-26 13:04:01 -08:00
commit 61124b62ad
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ Parsing and verifying tokens is pretty straight forward. You pass in the token
```go ```go
// Create the token // Create the token
token := jwt.New(SigningMethodHS256) token := jwt.New(jwt.SigningMethodHS256)
// Set some claims // Set some claims
token.Claims["foo"] = "bar" token.Claims["foo"] = "bar"
token.Claims["exp"] = time.Now().Add(time.Hour * 72).Unix() token.Claims["exp"] = time.Now().Add(time.Hour * 72).Unix()