From 574cd7c2458b12e41ec4bff5b79b6eb9fa22b914 Mon Sep 17 00:00:00 2001 From: matm Date: Wed, 30 Dec 2015 18:50:00 +0100 Subject: [PATCH] README: fix return arguments --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 6be8590..bf0100f 100644 --- a/README.md +++ b/README.md @@ -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 {