Fixed issue #36 - out of date example code

This commit is contained in:
Dave Grijalva 2014-10-06 22:41:14 -07:00
parent d82ad649e4
commit e1571c8f04
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ This library supports the parsing and verification as well as the generation and
Parsing and verifying tokens is pretty straight forward. You pass in the token and a function for looking up the key. This is done as a callback since you may need to parse the token to find out what signing method and key was used.
```go
token, err := jwt.Parse(myToken, func(token *jwt.Token) ([]byte, error) {
token, err := jwt.Parse(myToken, func(token *jwt.Token) (interface{}, error) {
return myLookupKey(token.Header["kid"])
})