diff --git a/README.md b/README.md index ea388bf..99942d8 100644 --- a/README.md +++ b/README.md @@ -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"]) })