Google Login - One-tap sign-up shows up on refresh even after successful login #624
Replies: 2 comments 2 replies
-
Hi I have the same problem and it turns out that you can remove this by adding some more parameters in the app.module.ts |
Beta Was this translation helpful? Give feedback.
-
@buhal This is the best npm package I have found so far for authorization in angular apps, hope the issue is resolved soon |
Beta Was this translation helpful? Give feedback.
-
Hi,
Followed the steps to implement Google sign-in and sign-out ("@abacritt/angularx-social-login": "^1.2.3") and asl-google-signin-button. After I'm successfully logged-in, on refresh the "One-tap sign-up" modal shows up on the top-right asking to sign-in again!
`
user: SocialUser;
this.socialAuthService.authState.subscribe(async (authState) => {
this.user = authState;
if (authState) {
await lastValueFrom(this.authService.login('Google', authState.idToken)).then((tokenData) => {
this.sharedDataService.isLoggedIn.next(true);
});
this.isShowSpinner = false;
this.router.navigate(['']);
}
});`
Beta Was this translation helpful? Give feedback.
All reactions