Fix login endpoint to /usr/login (sandbox ingress)
This commit is contained in:
parent
81db74aa63
commit
7ff3638afb
@ -34,7 +34,7 @@ export function useAuth() {
|
|||||||
async ({ email, password, orgId }: LoginParams) => {
|
async ({ email, password, orgId }: LoginParams) => {
|
||||||
setState((s) => ({ ...s, loading: true, error: null }));
|
setState((s) => ({ ...s, loading: true, error: null }));
|
||||||
try {
|
try {
|
||||||
const res = await fetch(`${apiUrl}/login`, {
|
const res = await fetch(`${apiUrl}/usr/login`, {
|
||||||
method: "POST",
|
method: "POST",
|
||||||
headers: { "Content-Type": "application/json" },
|
headers: { "Content-Type": "application/json" },
|
||||||
body: JSON.stringify({
|
body: JSON.stringify({
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user