Fix jwt-token

This commit is contained in:
2025-09-13 13:29:05 +02:00
parent da645290af
commit c6c8c505ba

View File

@@ -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);