Last active
December 3, 2018 09:36
-
-
Save wojtek1150/ac09e0220539ba3fc206308d86e39240 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
constructor( | |
private angularFireAuth: AngularFireAuth | |
) { } | |
login() { | |
const authProvider = new firebase.auth.GoogleAuthProvider(); | |
this.angularFireAuth.auth.signInWithRedirect(authProvider); | |
} | |
logout() { | |
this.angularFireAuth.auth.signOut(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment