You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using angular-devise and I have the following service that checks whether the user is logged or not
isAuthenticated: function ($state, Auth) {
Auth.currentUser().then(function (){
console.log("user is logged");
}, function(error) {
$state.go('home',{});
console.log("user is not logged");
})
The problem is when I log the user on the server side it keeps returning that he's not logged in until I refresh the page. Then, after the refersh, it says that the user is logged as expected.
What am I missing here? Thank you!
The text was updated successfully, but these errors were encountered:
I'm using angular-devise and I have the following service that checks whether the user is logged or not
The problem is when I log the user on the server side it keeps returning that he's not logged in until I refresh the page. Then, after the refersh, it says that the user is logged as expected.
What am I missing here? Thank you!
The text was updated successfully, but these errors were encountered: