CapacitorGoogleAuth icon indicating copy to clipboard operation
CapacitorGoogleAuth copied to clipboard

Pop Up Blocked by browser

Open 7FULL opened this issue 1 year ago • 0 comments

Basically Im trying to sign in with the google using this

<ion-button expand="block" class="special-button" shape="round" (click)="loginWithGoogle()">
        <img src="assets/img/google.png" alt="Icono de google">
</ion-button>

Function

async loginWithGoogle() {
    const user = await GoogleAuth.signIn();
    console.log(user);
  }

Just in case it is important here is how I initialize

export class AppComponent {
  constructor() {
    GoogleAuth.initialize({
      clientId: 'xxxx',
      scopes: ['profile', 'email'],
      grantOfflineAccess: true
    })
  }
}

7FULL avatar Jul 25 '24 19:07 7FULL