Created
April 15, 2019 21:22
-
-
Save wichopy/c642ab2d7a090fffcb1c4e92af3fcb15 to your computer and use it in GitHub Desktop.
Firebase Auth
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
var provider = new firebase.auth.GoogleAuthProvider(); | |
function onSigninClick () { | |
firebase.auth().signInWithPopup(provider).then(function (result) { | |
console.log('Auth resposne from firebase:', result) | |
}) | |
} | |
function onSignoutClick () { | |
firebase.auth().signOut().then(function() { | |
console.log('Signout successful') | |
}) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment