From e1571c8f043ba6c328509ad1bd36bbd0ece97d9c Mon Sep 17 00:00:00 2001 From: Dave Grijalva Date: Mon, 6 Oct 2014 22:41:14 -0700 Subject: [PATCH] Fixed issue #36 - out of date example code --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"]) })