We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
atm:
"The default behavior is to throw an error when the token is invalid, so you can add your custom logic to manage unauthorized access as follows:
app.use(function (err, req, res, next) { if (err.name === 'UnauthorizedError') { res.status(401).send('invalid token...'); } });
"
From the jwt-express docs
If a token is expired we probably want to direct them back to the log in page, or else we should render and nicer looking unauthorized page
The text was updated successfully, but these errors were encountered:
@m4v15 can we close?
Sorry, something went wrong.
No branches or pull requests
atm:
"The default behavior is to throw an error when the token is invalid, so you can add your custom logic to manage unauthorized access as follows:
"
From the jwt-express docs
If a token is expired we probably want to direct them back to the log in page, or else we should render and nicer looking unauthorized page
The text was updated successfully, but these errors were encountered: