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
The authorization middleware sets the status to 404 if doesn't find the user associated with the token.
frost-api/src/middlewares/authorization.ts
Lines 28 to 32 in 58135e7
This can happen when the user changes their email address — tokens created before the change will remain associated to the previous address.
In this case, a simple Not Found error message provides little to no guidance.
Not Found
Replace with Invalid Token, which is more correct, and logger.warning details of the event.
Invalid Token
logger.warning
The text was updated successfully, but these errors were encountered:
Will be mitigated by #916
Sorry, something went wrong.
No branches or pull requests
The authorization middleware sets the status to 404 if doesn't find the user associated with the token.
frost-api/src/middlewares/authorization.ts
Lines 28 to 32 in 58135e7
This can happen when the user changes their email address — tokens created before the change will remain associated to the previous address.
In this case, a simple
Not Found
error message provides little to no guidance.Replace with
Invalid Token
, which is more correct, andlogger.warning
details of the event.The text was updated successfully, but these errors were encountered: