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 Implemented google - Login in my application. That is working so far. When I refresh the Page I would preserve the login - state. I stored the idToken of the google SocialUser in the localstorage under 'userToken':
refreshToken(): void {
const userToken = localStorage.getItem('userToken');
if (userToken) {
console.log("signin in ...", userToken);
this.socialAuthService.signIn(GoogleLoginProvider.PROVIDER_ID, userToken);
}
}
But that does not work. How do I verify if the user is still logged in?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I Implemented google - Login in my application. That is working so far. When I refresh the Page I would preserve the login - state. I stored the idToken of the google SocialUser in the localstorage under 'userToken':
refreshToken(): void {
const userToken = localStorage.getItem('userToken');
if (userToken) {
console.log("signin in ...", userToken);
this.socialAuthService.signIn(GoogleLoginProvider.PROVIDER_ID, userToken);
}
}
But that does not work. How do I verify if the user is still logged in?
Beta Was this translation helpful? Give feedback.
All reactions