I have an Ionic 2 application that does an authentication on my Rails 5 backend. Once the user is logged, I store his informations on local storage.
So, once the user open the apps and he has already logged before, the login page should be skipped. I'm trying to do that on my app.component
setting my root page depending on if there's information about the user on local storage or not, but the storage.get
method appears to be asynchronous, so it is executing after my check, so it's always considering it false.
Any ideas how I could fix that?