Back button after login - mobile app

Hello,
I have a small problem with my mobile app, which I develop under AngularJS. After being authenticated I arrive on the home page of my application. The problem I have is that the “back” button on my phone brings me back to the authentication page.

Is there a way that this does not happen?

Thank you in advance for your answers

Try disabling the Back Button on the page you arrive at after authenticating. Presumably you only want a back button on other pages to take to to this page.

I use $ionicHistory.clearHistory() on my main page. So back will go nowhere.