if (process.browser) {
const firebaseui = require('firebaseui')
console.log(firebaseui)
const ui =
firebaseui.auth.AuthUI.getInstance() || new firebaseui.auth.AuthUI(auth)
const config = {
credentialHelper: firebaseui.auth.CredentialHelper.NONE,
signInOptions: [
authProviders.Google,
authProviders.Email,
authProviders.Facebook
],
signInFlow: 'popup',
tosUrl: '/tos',
privacyPolicyUrl: '/privacy-policy',
callbacks: {
signInSuccessWithAuthResult: this.signInResult
}
}
ui.disableAutoSignIn()
if (this.$store.state.userNfc) {
this.openAppPage()
} else {
ui.start('#firebaseui-auth-container', config)
}
}
}