golang-jwt / jwt

Go implementation of JSON Web Tokens (JWT).
https://golang-jwt.github.io/jwt/
MIT License
6.98k stars 335 forks source link

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

Closed santichoks closed 7 months ago

santichoks commented 7 months ago

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.