Page navigate to Tabs Page

Hello Guys,
In my app I have tab Menu after user logged in. So when user logout and press back then still they are moving to tab page. In actual they should exit from the App.In routing default routing is tabs-menu.

Application flow is as below:
If already logged-in then /tabs/upComing
else /auth/login

logout click is on /auth/profile so when i press it will navigateRoot([’/auth/login’]) and if I press back then it should exit the app in actual, but it navigate to /tabs/upComing

Please help me with this.

Thanks in advance.