forked from mirror/jwt
Merge pull request #54 from thatderek/patch-1
Updated token creation example to use the proper method.
This commit is contained in:
commit
61124b62ad
|
@ -34,7 +34,7 @@ Parsing and verifying tokens is pretty straight forward. You pass in the token
|
|||
|
||||
```go
|
||||
// Create the token
|
||||
token := jwt.New(SigningMethodHS256)
|
||||
token := jwt.New(jwt.SigningMethodHS256)
|
||||
// Set some claims
|
||||
token.Claims["foo"] = "bar"
|
||||
token.Claims["exp"] = time.Now().Add(time.Hour * 72).Unix()
|
||||
|
|
Loading…
Reference in New Issue