mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-07-19 18:24:12 +00:00
parent
5212ac6394
commit
c52e4a07d4
2 changed files with 3 additions and 8 deletions
|
|
@ -433,12 +433,10 @@ export default {
|
|||
await hello(network).logout();
|
||||
} catch (e) {} // eslint-disable-line
|
||||
|
||||
const url = window.location.href;
|
||||
|
||||
let auth = await hello(network).login({
|
||||
scope: 'email',
|
||||
// explicitly pass the redirect url or it might redirect to /home
|
||||
redirect_uri: url, // eslint-disable-line camelcase
|
||||
redirect_uri: '', // eslint-disable-line camelcase
|
||||
});
|
||||
|
||||
await this.$store.dispatch('auth:socialAuth', {
|
||||
|
|
|
|||
|
|
@ -663,13 +663,10 @@
|
|||
await hello(network).logout();
|
||||
} catch (e) {} // eslint-disable-line
|
||||
|
||||
|
||||
const url = window.location.href;
|
||||
|
||||
let auth = await hello(network).login({
|
||||
const auth = await hello(network).login({
|
||||
scope: 'email',
|
||||
// explicitly pass the redirect url or it might redirect to /home
|
||||
redirect_uri: url, // eslint-disable-line camelcase
|
||||
redirect_uri: '', // eslint-disable-line camelcase
|
||||
});
|
||||
|
||||
await this.$store.dispatch('auth:socialAuth', {
|
||||
|
|
|
|||
Loading…
Reference in a new issue