updated README with new argument order for WithClaims methods

This commit is contained in:
Dave Grijalva 2016-04-12 16:39:41 -07:00
parent 5e270fa6cd
commit b9283128ba
1 changed files with 1 additions and 1 deletions

View File

@ -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)
```