New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using node-jsonwebtoken error message ? #98
Comments
+1 |
Hi, Sorry for the delayed reply, I've been on holiday. What is the motivation behind this? You can set |
It seems a bit unusual to have to pass a debug flag to learn that the token has expired. It also seems pretty important to know that the token has expired so that the api consumer can refresh it. |
I agree - it is unusual. But still, if the problem can be solved by using option.debug = true, then changing the behaviour to make it less unusual would affect more people than just requiring users who need the message to set options.debug to true. |
Suggestion for using node-jsonwebtoken module error message
see https://github.com/auth0/node-jsonwebtoken errors:
TokenExpiredError and JsonWebTokenError
change file index.js line 51
change to
The text was updated successfully, but these errors were encountered: