fix: send username instead of email for login API

This commit is contained in:
shokollm
2026-04-10 07:47:21 +00:00
parent 32cd7184ea
commit 937cc2da60

View File

@@ -41,7 +41,7 @@ export const api = {
const response = await fetch(`${API_URL}/auth/login`, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ email, password })
body: JSON.stringify({ username: email, password })
});
return handleResponse<AuthResponse>(response);
},