diff --git a/src/roles/guest/auth/services/authService.jsx b/src/roles/guest/auth/services/authService.jsx index c20c69c..3307f0f 100644 --- a/src/roles/guest/auth/services/authService.jsx +++ b/src/roles/guest/auth/services/authService.jsx @@ -12,9 +12,9 @@ import { API_URL } from '../../../../utils/Constant'; // } // }; -const login = async (EMAIL, PASSWORD) => { +const login = async (IDENTIFIER, PASSWORD) => { try { - const response = await axios.post(`${API_URL}/login`, { EMAIL, PASSWORD }, { + const response = await axios.post(`${API_URL}/login`, { IDENTIFIER, PASSWORD }, { withCredentials: true }); const { TOKEN, refreshToken } = response.data.payload; diff --git a/src/roles/guest/auth/views/Login.jsx b/src/roles/guest/auth/views/Login.jsx index 8f40402..930e60f 100644 --- a/src/roles/guest/auth/views/Login.jsx +++ b/src/roles/guest/auth/views/Login.jsx @@ -32,7 +32,7 @@ const LoginPage = () => {