Closed tawani closed 1 year ago
I don't know if it's the same issue, but when I'm logged in with google, the popup from google that asks to login with google still appears, it shouldn't.
Same issue here, I was performing logout and as soon as I redirected to login page the popup comes up, is there any workaround for this? thanks!
Same here
The Google login appears automatically only by injecting SocialAuthService into a constructor
There is nothing in the documentation that helps me disable that behaviour
I need to launch the Google login modal when I call it to do so
This is a bit of a hack, but I set the prompt_parent_id
in initOptions to point to a div with display: none;
to hide the prompt from the user. Hopefully PR https://github.com/abacritt/angularx-social-login/pull/588 will solve this.
Edit: this isn't recommended apparently and can get your account suspended and also doesn't work on mobile screen resolutions.
Try defining "googleLoginOptions" with param "oneTapEnabled" set to "false" when defining the provider in AppModule:
const googleLoginOptions: GoogleInitOptions = {
oneTapEnabled: false, // default is true
};
...
providers: [
{
provide: 'SocialAuthServiceConfig',
useValue: {
autoLogin: false,
providers: [
{
id: GoogleLoginProvider.PROVIDER_ID,
provider: new GoogleLoginProvider(
environment.google.token,
googleLoginOptions
),
},
],
onError: (err) => {
console.error(err);
},
} as SocialAuthServiceConfig,
},
],
...
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Why are we loading Google login without the user's consent? I need the user to explicitly click on their social login button. How can we do that?