From efd34b970d0d1f88fa7d7e9d69e569f039867ca2 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Tue, 4 Mar 2025 23:39:26 +0900 Subject: rm registration token --- frontend/app/.server/api/client.ts | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'frontend/app/.server/api/client.ts') diff --git a/frontend/app/.server/api/client.ts b/frontend/app/.server/api/client.ts index edcffc1..fef1508 100644 --- a/frontend/app/.server/api/client.ts +++ b/frontend/app/.server/api/client.ts @@ -8,18 +8,11 @@ const apiClient = createClient({ : "http://api-server/phperkaigi/2025/code-battle/api/", }); -export async function apiPostLogin( - username: string, - password: string, - registrationToken: string | null, -) { +export async function apiPostLogin(username: string, password: string) { const { data, error } = await apiClient.POST("/login", { body: { username, password, - ...(registrationToken !== null - ? { registration_token: registrationToken } - : {}), }, }); if (error) throw new Error(error.message); -- cgit v1.2.3-70-g09d2