Fix broken login button

This commit is contained in:
Jai A
2021-03-29 18:14:06 -07:00
parent 24c8e29691
commit e941af0905
6 changed files with 759 additions and 1 deletions

View File

@@ -14,6 +14,8 @@ export default async function (context) {
const cookie = context.app.$cookies.get('auth-token')
await context.store.dispatch('auth/fetchUser', { token: cookie })
} else {
context.$auth.user = null
}
}