How to show $ionicModal in app.run

I want to show $ionicModal (login modal) in app.run, if the user is not authenticated. If the user is authenticated, then the app will go to a certain state. If the login modal is closed, I want the app to go to the same state as it would have gone if the user would have been authenticated. I also want this if the user successfully logins or registers. The ionic login modal that I want to show has also been used in other places in the application, and I want to share that ionic login modal in the app.run. Could this be possible, and how?