Use redirects to sign in
This commit is contained in:
parent
1e1af77150
commit
5aaca96e1b
@ -21,7 +21,7 @@ export class LoginComponent implements OnInit {
|
|||||||
|
|
||||||
async login() {
|
async login() {
|
||||||
await firebase.auth().setPersistence(firebase.auth.Auth.Persistence.LOCAL);
|
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']);
|
return this.router.navigate(['/dashboard']);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user