We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c7f8565 commit 2673fb8Copy full SHA for 2673fb8
2 files changed
entregable4-frontend-2-main/src/auth/pages/Login/Login.component.jsx
@@ -36,14 +36,6 @@ const Login = () => {
36
message: "Unexpected error, please try again",
37
}))
38
}
39
-
40
- /*catch (error) {
41
- if(error.response.status === 401) {
42
- dispatch(showNotification({
43
- variant: "danger",
44
- message: "Invalid credentials",
45
- }));
46
- }*/
47
} finally { setIsLoading(false); }
48
49
entregable4-frontend-2-main/src/utils/axios.js
@@ -12,10 +12,6 @@ axios.interceptors.request.use(function (config) {
12
config.headers.Authorization = `Bearer ${token}`;
13
14
return config;
15
16
- /*if(config.headers?.Authorization) return config;
17
- config.headers.Authorization = `Bearer ${token}`;
18
- return config;*/
19
});
20
21
axios.interceptors.response.use((res) => {
0 commit comments