Fix enter.vue firebase not loaded
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
|
||||
<script lang="ts">
|
||||
import Vue from "vue"
|
||||
import { initializeFirebase } from "~/helpers/fb"
|
||||
import { isSignInWithEmailLink, signInWithEmailLink } from "~/helpers/fb/auth"
|
||||
|
||||
export default Vue.extend({
|
||||
@@ -17,6 +18,9 @@ export default Vue.extend({
|
||||
error: null,
|
||||
}
|
||||
},
|
||||
beforeMount() {
|
||||
initializeFirebase()
|
||||
},
|
||||
async mounted() {
|
||||
if (isSignInWithEmailLink(window.location.href)) {
|
||||
this.signingInWithEmail = true
|
||||
|
||||
Reference in New Issue
Block a user