migration

This commit is contained in:
Henry Jameson 2026-08-10 15:00:59 +03:00
commit 7d4ced15c6
90 changed files with 311 additions and 1165 deletions

View file

@ -1,6 +1,7 @@
import { defineStore } from 'pinia'
import { useOAuthStore } from 'src/stores/oauth.js'
import { useUsersStore } from 'src/stores/users.js'
const PASSWORD_STRATEGY = 'password'
const TOKEN_STRATEGY = 'token'
@ -63,7 +64,7 @@ export const useAuthFlowStore = defineStore('authFlow', {
},
async login({ access_token: accessToken }) {
useOAuthStore().setToken(accessToken)
await window.vuex.dispatch('loginUser', accessToken, { root: true })
useUsersStore().loginUser(accessToken, { root: true })
this.resetState()
},
},