aboutsummaryrefslogtreecommitdiffhomepage
path: root/frontend/app/.server/auth.ts
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/app/.server/auth.ts')
-rw-r--r--frontend/app/.server/auth.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/frontend/app/.server/auth.ts b/frontend/app/.server/auth.ts
index cbeb141..81ceadf 100644
--- a/frontend/app/.server/auth.ts
+++ b/frontend/app/.server/auth.ts
@@ -2,7 +2,7 @@ import { jwtDecode } from "jwt-decode";
import { redirect } from "react-router";
import { Authenticator } from "remix-auth";
import { FormStrategy } from "remix-auth-form";
-import { apiPostLogin } from "../api/client";
+import { apiLogin } from "../api/client";
import { components } from "../api/schema";
import { createUnstructuredCookie } from "./cookie";
import { cookieOptions, sessionStorage } from "./session";
@@ -13,7 +13,7 @@ authenticator.use(
new FormStrategy(async ({ form }) => {
const username = String(form.get("username"));
const password = String(form.get("password"));
- return (await apiPostLogin(username, password)).token;
+ return (await apiLogin(username, password)).token;
}),
"default",
);