CapacitorGoogleAuth
CapacitorGoogleAuth copied to clipboard
Pop Up Blocked by browser
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
})
}
}