diff --git a/README.md b/README.md index 7802b96..db16671 100644 --- a/README.md +++ b/README.md @@ -93,7 +93,7 @@ On the other end of usage all of the `jwt.Parse` and friends got a `WithClaims` New method usage: ```go - token, err := jwt.ParseWithClaims(token, keyFunc, &jwt.StandardClaims{}) + token, err := jwt.ParseWithClaims(token, &jwt.StandardClaims{}, keyFunc) claims := token.Claims.(jwt.StandardClaims) fmt.Println(claims.IssuedAt) ```