Angular SocialAuthService google. How to close google tap (credential_picker_container)?

687 Views Asked by At

I use angular 14. Before updating I have used angular 13 with @abacritt/angularx-social-login 1.1.0, now It has been updated to ^1.2.5 and appeared one tap google auth iframe. I do auth with my own service and when client authed, we are moving to dashboard, but google tap iframe leaves on the page. I want to close it when I make auth with my own service. How to close (or disable) this? (angular 14, @abacritt/angularx-social-login ^1.2.5)

2

There are 2 best solutions below

1
qattus On BEST ANSWER

in your app.module.ts:

{
  provide: 'SocialAuthServiceConfig',
  useValue: {
    autoLogin: false,
    providers: [
      {
        id: GoogleLoginProvider.PROVIDER_ID,
        provider: new GoogleLoginProvider('google-id', {
          oneTapEnabled: false
        }),
      },
    ],
  } as SocialAuthServiceConfig,
0
shmihshmih On

You can't manipulate with this block. But you can set in config of google-btn autoclose of this block.