The app is running locally on http://localhost:3000. When a user is already signed in and tries to access the /sign-in route, the application enters a reload loop.
In the console: The component cannot render when a user is already signed in, unless the application allows multiple sessions. Since a user is signed in and this application only allows a single session, Clerk is redirecting to the afterSignIn URL instead.
Expected Behavior:
Authenticated users who access the /sign-in route should be redirected to the home page or dashboard instead of seeing the sign-in form again.
Actual Behavior:
The app attempts to render the component for an already authenticated user, causing a reload loop.
The app is running locally on http://localhost:3000. When a user is already signed in and tries to access the /sign-in route, the application enters a reload loop.
In the console: The component cannot render when a user is already signed in, unless the application allows multiple sessions. Since a user is signed in and this application only allows a single session, Clerk is redirecting to the afterSignIn URL instead.
Expected Behavior:
Authenticated users who access the /sign-in route should be redirected to the home page or dashboard instead of seeing the sign-in form again.
Actual Behavior:
The app attempts to render the component for an already authenticated user, causing a reload loop.