From 634b44e6833ad86018f41efcd7a8405dcbc2de33 Mon Sep 17 00:00:00 2001 From: nquidox Date: Sun, 14 Sep 2025 18:22:26 +0300 Subject: [PATCH] set token bug fixed --- src/stores/authStore.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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)