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 logout issue on pages without user context #678

Merged
merged 1 commit into from
Jan 25, 2025

Conversation

tjementum
Copy link
Member

Summary & Motivation

Fix an issue where logging out from a page without user context did not immediately redirect the user. While the authentication cookies were removed, the logout was only detected after an authenticated API request failed with a 401 Unauthorized response.

Now, the logout logic immediately redirects the browser to the loginPath, ensuring an instant logout experience rather than waiting for a failed request. This makes the logout process more seamless and responsive.

Checklist

  • I have added tests, or done manual regression tests
  • I have updated the documentation, if necessary

@tjementum tjementum added the Enhancement New feature or request label Jan 25, 2025
@tjementum tjementum self-assigned this Jan 25, 2025
Copy link

linear bot commented Jan 25, 2025

@tjementum tjementum merged commit 21810c8 into main Jan 25, 2025
9 checks passed
@tjementum tjementum deleted the pp-310-ensure-consistent-logout-redirect branch January 25, 2025 23:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement New feature or request
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

1 participant