In the application, there is an issue where, after a user signs up or logs in, quits the application, and then reopens it, the app starts from the onboarding page instead of the home page. This behavior occurs even if the user is already authenticated and should be redirected directly to the home page.
Expected behavior
When the user signs up or logs in and then quits the application:
On reopening, the app should check if the user is already logged in.
If the user is logged in, it should navigate directly to the home page.
The onboarding page should only be shown the first time a user launches the app or when they explicitly log out or delete their account.
The app should not show the onboarding page if the user has an existing account and is already logged in.