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

Fix infinite redirect in token verification if login page is accessed #21

Merged
merged 1 commit into from
May 18, 2024

Conversation

timonegk
Copy link
Member

If a user tries to log in (or an application redirects to login) when the access token and refresh token are both expired, the middleware currently redirects to the login url again, causing an infinite redirect. This fixes the issue and adds some documentation to the code.

@timonegk timonegk requested review from lilioid and cronala May 18, 2024 08:52
@timonegk timonegk merged commit 07b0bc2 into main May 18, 2024
34 checks passed
@timonegk timonegk deleted the fix/token_middleware_login branch May 18, 2024 08:57
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

Successfully merging this pull request may close these issues.

3 participants