login/logout/register woes
This commit is contained in:
parent
a392f8e4a9
commit
556a37e836
11 changed files with 29 additions and 21 deletions
|
|
@ -63,8 +63,8 @@ export const useAuthFlowStore = defineStore('authFlow', {
|
|||
this.settings = {}
|
||||
},
|
||||
async login({ access_token: accessToken }) {
|
||||
useOAuthStore().setToken(accessToken)
|
||||
useUsersStore().loginUser(accessToken, { root: true })
|
||||
await useOAuthStore().setToken(accessToken)
|
||||
await useUsersStore().loginUser(accessToken, { root: true })
|
||||
this.resetState()
|
||||
},
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue