Currently, after users log in, they are not redirected to a specific page based on their authentication state.
This feature should be implemented to redirect users to the appropriate page upon login or visit, based on their authentication state.
To implement this feature, the following steps are suggested:
When a user visits the website, check if they are already logged in.
If a user is logged in, prevent them from being redirected to the login page and update the navigation bar to reflect their authenticated state.
Upon successful login, retrieve the user's authentication state.
Determine whether the user is a new user or a returning user based on their authentication state.
If the user is identified as a new user, redirect them to the /goals page.
If the user is recognized as a returning user, redirect them to the /profile page, which serves as the default landing page for returning users.
Additional Details and Resources
Consider the following points to ensure successful implementation:
The authentication state should be accurately tracked and managed throughout the user session.
While waiting for the completion of the Authentication State issue, mock the current user status to demonstrate the expected behavior of the redirection feature.
Describe the Feature / Enhancement
Currently, after users log in, they are not redirected to a specific page based on their authentication state.
This feature should be implemented to redirect users to the appropriate page upon login or visit, based on their authentication state.
To implement this feature, the following steps are suggested:
Determine whether the user is a new user or a returning user based on their authentication state.
Additional Details and Resources
Consider the following points to ensure successful implementation:
Git Instructions:
Correct Project Selected
Correct Label Selected
Correct Milestone Selected