Open ghost opened 6 years ago
@devcer you have to check onAuthStateChanged
firebase.auth().onAuthStateChanged(function(user) {
if (user) {
// User is signed in.
this.nav.setRoot('home');
} else {
// No user is signed in.
this.nav.setRoot('loginPage');
}
});
Everytime I close and reopen the app, I will have to relogin from beginning. it would be better if it stores the session until I logout.