fix: setting token
All checks were successful
Build and Deploy Frontend / build-and-deploy (push) Successful in 6s
All checks were successful
Build and Deploy Frontend / build-and-deploy (push) Successful in 6s
This commit is contained in:
@@ -27,12 +27,11 @@ export const login = async (user: LoginDto ) => {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
const response = await api.post(`${API_URL}/login`, user);
|
const response = await api.post(`${API_URL}/login`, user);
|
||||||
localStorage.setTokens(response.data);
|
authStorage.setTokens(response.data);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.log(err);
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user