diff --git a/frontend/src/hooks/useAuth.ts b/frontend/src/hooks/useAuth.ts index 5344493d49..c3e39ef1a2 100644 --- a/frontend/src/hooks/useAuth.ts +++ b/frontend/src/hooks/useAuth.ts @@ -43,7 +43,10 @@ const useAuth = () => { const login = async (data: AccessToken) => { const response = await LoginService.loginAccessToken({ - formData: data, + formData: { + username: data.username, + password: data.password, + }, }) localStorage.setItem("access_token", response.access_token) }