diff --git a/frontend/src/hooks/api/useAuth.js b/frontend/src/hooks/api/useAuth.js index 4bf402f..af07566 100644 --- a/frontend/src/hooks/api/useAuth.js +++ b/frontend/src/hooks/api/useAuth.js @@ -46,7 +46,7 @@ export function useAuth() { const logout = () => { return instance - .get(`${API_URL}/user/logout`) + .post(`${API_URL}/user/logout`) .then((response) => { console.log(response); setUserType(null);