From c6c8c505baa4acb127b0120ea13803bc1937a9b2 Mon Sep 17 00:00:00 2001 From: Alexander Borg Date: Sat, 13 Sep 2025 13:29:05 +0200 Subject: [PATCH] Fix jwt-token --- client/src/contexts/AuthContext.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/contexts/AuthContext.jsx b/client/src/contexts/AuthContext.jsx index 60bc6b3..d662636 100644 --- a/client/src/contexts/AuthContext.jsx +++ b/client/src/contexts/AuthContext.jsx @@ -115,7 +115,7 @@ export const AuthProvider = ({ children }) => { const login = async (credentials) => { try { dispatch({ type: 'LOGIN_START' }); - const response = await api.post('/users/login', credentials); + const response = await api.post('/auth/local', credentials); const { user, token } = response.data.data; localStorage.setItem('token', token);