diff --git a/src/stores/authStore.js b/src/stores/authStore.js index 31c2cc1..7ddbe76 100644 --- a/src/stores/authStore.js +++ b/src/stores/authStore.js @@ -26,8 +26,7 @@ export const useAuthStore = defineStore('auth', () => { const login = async (email, password) => { try { const response = await apiClient.post('/user/auth/login', { email, password }) - setToken(response.data.accessToken) - + setToken(response.data.access_token) router.push({ name: 'collection'}) } catch (error) { console.error('Login error:', error)