Use redirects to sign in

This commit is contained in:
Zakary Timson 2018-11-14 15:07:13 -05:00
parent 1e1af77150
commit 5aaca96e1b

View File

@ -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']);
}
}