mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 22:57:21 +01:00
More Client Fixes (#9002)
* logout should entirely clear localstorage * fix logout, fix social login, remove duplicate home page
This commit is contained in:
@@ -302,7 +302,13 @@ export default {
|
||||
window.location.href = '/';
|
||||
},
|
||||
async socialAuth (network) {
|
||||
let auth = await hello(network).login({scope: 'email'});
|
||||
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
|
||||
});
|
||||
|
||||
await this.$store.dispatch('auth:socialAuth', {
|
||||
auth,
|
||||
|
||||
Reference in New Issue
Block a user