golang-jwt / jwt

Go implementation of JSON Web Tokens (JWT).

Home Page:https://golang-jwt.github.io/jwt/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

I found an error message "token has invalid claims: token is expired"

santichoks opened this issue · comments

If I set ExpiresAt equal to 0 when SignedString and after that I ParseWithClaims After that it has an error that "token has invalid claims: token is expired" It seems like jwt.ErrTokenInvalidClaims + ":" + jwt.ErrTokenExpired, Why is it not only equal to jwt.ErrTokenExpired? And I try to set ExpiresAt equal to a day. But it does not have an error.