Updated token creation example to use the proper method.

Example broke with error `undefined: SigningMethodHS256`. Edited to use jwt.SigningMethodHS256
This commit is contained in:
thatderek 2015-01-25 01:25:58 -05:00
parent a3e2f13bb7
commit c5c16083c7
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
// 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()