diff --git a/client/src/api/AuthApi.ts b/client/src/api/AuthApi.ts index 2175ca0..62b4a0a 100644 --- a/client/src/api/AuthApi.ts +++ b/client/src/api/AuthApi.ts @@ -27,12 +27,11 @@ export const login = async (user: LoginDto ) => { try { const response = await api.post(`${API_URL}/login`, user); - localStorage.setTokens(response.data); + authStorage.setTokens(response.data); return true; } catch (err) { - console.log(err); return false; }