Skip to content
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

Incorrect HTTP Status Code for Expired JWT #419

Open
jbcam opened this issue May 24, 2024 · 1 comment
Open

Incorrect HTTP Status Code for Expired JWT #419

jbcam opened this issue May 24, 2024 · 1 comment

Comments

@jbcam
Copy link

jbcam commented May 24, 2024

Hello,
I wanted to report this issue regarding expired JWT handling. Currently, the API returns a 422 Unprocessable Entity status code when a JWT is expired.
However, based on HTTP status code standards, returning a 401 Unauthorized status code in this scenario would be more appropriate.

Thanks for your help on that!

@rhanka
Copy link
Member

rhanka commented Oct 14, 2024

@cristianpb initially we put 422 to make the diff btw jwt and no jwt, but 401 still seems to be the right standard - we should migrate to 401

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants