I am working on an app using tabs and a firebase login system. The issue I am having is on the “profile” tab you have the login page which when you login redirects that page to a profile page. The issue lies when I click on either of the other 2 tabs then return to the “profile” tab. That tab will then display the login page again even though I am already logged in.
What I am trying to figure out is if there is a way that when I click another tab and come back, it will display the profile page and not the login. Sort of like a redirect that if logged in display the profile page or if not logged in display the login page.