Skip to content

Instantly share code, notes, and snippets.

@standinga
Created November 20, 2019 03:42
Show Gist options
  • Save standinga/e3772934176582b1fb1f6c03141ceaf4 to your computer and use it in GitHub Desktop.
Save standinga/e3772934176582b1fb1f6c03141ceaf4 to your computer and use it in GitHub Desktop.
Updated index.vue for the medium blog posts
<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