Skip to content

Commit 36a1b67

Browse files
fix formData for production build due to 400 error on dashboard login
1 parent e4387f4 commit 36a1b67

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

frontend/src/hooks/useAuth.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,10 @@ const useAuth = () => {
4343

4444
const login = async (data: AccessToken) => {
4545
const response = await LoginService.loginAccessToken({
46-
formData: data,
47-
})
46+
formData: {
47+
username: data.username,
48+
password: data.password,
49+
})
4850
localStorage.setItem("access_token", response.access_token)
4951
}
5052

0 commit comments

Comments
 (0)