mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-14 21:27:23 +01:00
Logged users out if they were logged in with facebook (#10322)
This commit is contained in:
@@ -105,7 +105,12 @@ export default {
|
||||
});
|
||||
},
|
||||
methods: {
|
||||
// @TODO: Abstract hello in to action or lib
|
||||
async socialAuth (network) {
|
||||
try {
|
||||
await hello(network).logout();
|
||||
} catch (e) {} // eslint-disable-line
|
||||
|
||||
try {
|
||||
let auth = await hello(network).login({
|
||||
scope: 'email',
|
||||
|
||||
Reference in New Issue
Block a user