Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pop Up Blocked by browser #384

Open
7FULL opened this issue Jul 25, 2024 · 0 comments
Open

Pop Up Blocked by browser #384

7FULL opened this issue Jul 25, 2024 · 0 comments

Comments

@7FULL
Copy link

7FULL commented Jul 25, 2024

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
    })
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant