Created
November 20, 2019 03:42
-
-
Save standinga/e3772934176582b1fb1f6c03141ceaf4 to your computer and use it in GitHub Desktop.
Updated index.vue for the medium blog posts
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
<template> | |
<div class="container"> | |
<button @click="signInRedirect">Sign With Redirect</button> | |
<button @click="signInPopup">Sign With Pop Up</button> | |
<button @click="test">Test</button> | |
</div> | |
</template> | |
<script> | |
export default { | |
methods: { | |
signInRedirect: async function() { | |
var provider = new this.$firebase.auth.GoogleAuthProvider() | |
const redr = await this.$firebase.auth().signInWithRedirect(provider) | |
}, | |
signInPopup: async function() { }, | |
test: async function() { } | |
} | |
} | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment