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

JWT Middleware doesn't inform of JWT expiry #3995

Open
neural9 opened this issue Mar 13, 2025 · 0 comments
Open

JWT Middleware doesn't inform of JWT expiry #3995

neural9 opened this issue Mar 13, 2025 · 0 comments
Labels

Comments

@neural9
Copy link

neural9 commented Mar 13, 2025

What version of Hono are you using?

4.7.4

What runtime/platform is your app running on? (with version if possible)

Bun

What steps can reproduce the bug?

When using JWT Middleware to validate bearer token, if the token has expired then the error is a generic HTTPException rather than explanatory.

What is the expected behavior?

Prefer to see the error type surfaced rather than replaced by HTTPException so the client knows they need to send a refresh token.

What do you see instead?

No response

Additional information

No response

@neural9 neural9 added the triage label Mar 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant