Logged users out if they were logged in with facebook (#10322)

This commit is contained in:
Keith Holliday
2018-05-03 13:00:50 -05:00
committed by GitHub
parent c1ed02d383
commit 5e6541faa6
3 changed files with 16 additions and 0 deletions

View File

@@ -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',