From 3f20133f869bdc817d671284504403aa9833ba1a Mon Sep 17 00:00:00 2001 From: Craig Pastro Date: Tue, 18 Jul 2023 10:33:10 -0700 Subject: [PATCH] One more --- hmac_example_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hmac_example_test.go b/hmac_example_test.go index 6ddf36d1..1b1edf46 100644 --- a/hmac_example_test.go +++ b/hmac_example_test.go @@ -61,7 +61,7 @@ func ExampleParse_hmac() { log.Fatal(err) } - if claims, ok := token.Claims.(jwt.MapClaims); ok && token.Valid { + if claims, ok := token.Claims.(jwt.MapClaims); ok { fmt.Println(claims["foo"], claims["nbf"]) } else { fmt.Println(err)