README: fix return arguments

This commit is contained in:
matm 2015-12-30 18:50:00 +01:00
parent 2240de772c
commit 574cd7c245
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 {
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 {