mirror of
https://github.com/romancm/gamebrary
synced 2024-11-28 06:00:22 +00:00
formatting + todo
This commit is contained in:
parent
4860c2d3fc
commit
03c8282224
1 changed files with 12 additions and 9 deletions
|
@ -26,17 +26,20 @@ export default {
|
||||||
return this.$router.replace({ name: 'dashboard' });
|
return this.$router.replace({ name: 'dashboard' });
|
||||||
}
|
}
|
||||||
|
|
||||||
return firebase.auth().getRedirectResult().then(({ additionalUserInfo, user }) => {
|
return firebase.auth().getRedirectResult()
|
||||||
if (additionalUserInfo && additionalUserInfo.isNewUser) {
|
.then(({ additionalUserInfo, user }) => {
|
||||||
this.$store.dispatch('SEND_WELCOME_EMAIL', additionalUserInfo);
|
if (additionalUserInfo && additionalUserInfo.isNewUser) {
|
||||||
}
|
this.$store.dispatch('SEND_WELCOME_EMAIL', additionalUserInfo);
|
||||||
|
}
|
||||||
|
|
||||||
if (user) {
|
if (user) {
|
||||||
return this.initUser(user);
|
return this.initUser(user);
|
||||||
}
|
}
|
||||||
|
|
||||||
return this.handleAuthRedirect();
|
return this.handleAuthRedirect();
|
||||||
});
|
}).catch(() => {});
|
||||||
|
|
||||||
|
// TODO: handle issue when viewing site in incognito mode
|
||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
|
|
Loading…
Reference in a new issue