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

Prevent authenticated users from accessing login and signup pages #659

Conversation

tjementum
Copy link
Member

Summary & Motivation

Prevent already logged in users from logging in or signing up for a new tenant. The useIsAuthenticated hook has been fixed to correctly check the authentication state, ensuring accurate redirects. Authenticated users attempting to access anonymous pages like the landing page, login, or signup are now redirected to the admin center.

Additionally, unused authentication-related components, constants, and hooks have been removed to clean up the codebase.

Checklist

  • I have added a Label to the pull-request
  • I have added tests, and done manual regression tests
  • I have updated the documentation, if necessary

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

linear bot commented Jan 2, 2025

Copy link

sonarqubecloud bot commented Jan 2, 2025

@tjementum tjementum merged commit 319053c into main Jan 2, 2025
11 checks passed
@tjementum tjementum deleted the pp-252-prevent-already-logged-in-users-from-logging-in-or-signing branch January 2, 2025 20:14
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