From 5aaca96e1b7c372d1a4e37c492e0fbae5bfcba94 Mon Sep 17 00:00:00 2001 From: Zak Timson Date: Wed, 14 Nov 2018 15:07:13 -0500 Subject: [PATCH] Use redirects to sign in --- src/app/login/login.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/login/login.component.ts b/src/app/login/login.component.ts index 578ddc3..1025a85 100644 --- a/src/app/login/login.component.ts +++ b/src/app/login/login.component.ts @@ -21,7 +21,7 @@ export class LoginComponent implements OnInit { async login() { await firebase.auth().setPersistence(firebase.auth.Auth.Persistence.LOCAL); - await firebaseApp.auth().signInWithPopup(new firebase.auth.GoogleAuthProvider()); + await firebaseApp.auth().signInWithRedirect(new firebase.auth.GoogleAuthProvider()); return this.router.navigate(['/dashboard']); } }