You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the page loads, there is a brief flash of the LoginComponent before the user's authentication status is confirmed. This occurs because the initial state of the user in our authentication hook is set to null, and it takes a moment for the hook to update this state based on the user's session. This flash can be jarring and confusing for users who are already logged in.
Steps to Reproduce
Open the application while already logged in.
Observe that the LoginComponent briefly appears before being replaced by the main content.
Expected Behavior
The LoginComponent should not appear if the user is already authenticated and has an active session.
Actual Behavior
The LoginComponent flashes briefly on page load, even when the user is authenticated.
The text was updated successfully, but these errors were encountered:
current idea: we decouple token/url and email/password? make it sort of a two step? that way we set up the supabaseClient before needing to do auth, maybe this way we can use the auth helpers Supabase provides? @adamcohenhillel thoughts if that could help? Might not fix the flashing at first but maybe once we can assume there is the supabaseClient it would make auth cleaner no?
When the page loads, there is a brief flash of the LoginComponent before the user's authentication status is confirmed. This occurs because the initial state of the user in our authentication hook is set to null, and it takes a moment for the hook to update this state based on the user's session. This flash can be jarring and confusing for users who are already logged in.
Steps to Reproduce
Open the application while already logged in.
Observe that the LoginComponent briefly appears before being replaced by the main content.
Expected Behavior
The LoginComponent should not appear if the user is already authenticated and has an active session.
Actual Behavior
The LoginComponent flashes briefly on page load, even when the user is authenticated.
The text was updated successfully, but these errors were encountered: