Default
Function: default()
[object Object]
Defined in: app/routes/auth/login.tsx:24
A dedicated authentication gateway component.
This page acts as a router/sentinel for the login flow. It does not contain a traditional UI; instead, it orchestrates the following logic:
- Unauthenticated Users: Automatically triggers the Keycloak redirect to the SSO login page. Upon successful login, Keycloak is instructed to redirect the user back to the application root.
- Authenticated Users: If a user navigates to this page while already logged in, they are immediately bounced back to the homepage to prevent unnecessary login prompts.
Performance Note: This component uses a full page redirect (window.location.href)
to ensure the application state is completely reset and synchronized with
the new authentication token.
Returns
[object Object]