Navigate back to root

hello

Navigate back to root

in my app when i put firebase to exit it exits everything i put Navigate back to root to return login page but it goes to main page and not to login area

it was to go back to all the home page if I entered the app with login this Navigate back to root was to go back to the login area but it goes back to the main page

so until you go back to the login but when you go to login the success but it doesn’t go to the main page