Skip to content

Commit

Permalink
One more
Browse files Browse the repository at this point in the history
  • Loading branch information
craigpangea committed Jul 18, 2023
1 parent d600bb6 commit 3f20133
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hmac_example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 3f20133

Please sign in to comment.