Merge pull request #111 from matm/master

README: fix return arguments
This commit is contained in:
Dave Grijalva 2015-12-30 10:00:00 -08:00
commit afef698c32
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ Parsing and verifying tokens is pretty straight forward. You pass in the token
if _, ok := token.Method.(*jwt.SigningMethodRSA); !ok { if _, ok := token.Method.(*jwt.SigningMethodRSA); !ok {
return nil, fmt.Errorf("Unexpected signing method: %v", token.Header["alg"]) return nil, fmt.Errorf("Unexpected signing method: %v", token.Header["alg"])
} }
return myLookupKey(token.Header["kid"]) return myLookupKey(token.Header["kid"]), nil
}) })
if err == nil && token.Valid { if err == nil && token.Valid {