Fix login endpoint to /usr/login (sandbox ingress)

This commit is contained in:
Bhanu Prakash Sai Potteri 2026-05-22 22:32:49 +05:30
parent 81db74aa63
commit 7ff3638afb

View File

@ -34,7 +34,7 @@ export function useAuth() {
async ({ email, password, orgId }: LoginParams) => {
setState((s) => ({ ...s, loading: true, error: null }));
try {
const res = await fetch(`${apiUrl}/login`, {
const res = await fetch(`${apiUrl}/usr/login`, {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({