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 +-------- frontend/app/.server/api/schema.d.ts | 2 -- 2 files changed, 1 insertion(+), 10 deletions(-) (limited to 'frontend/app/.server/api') 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); diff --git a/frontend/app/.server/api/schema.d.ts b/frontend/app/.server/api/schema.d.ts index 7fd612e..1afed69 100644 --- a/frontend/app/.server/api/schema.d.ts +++ b/frontend/app/.server/api/schema.d.ts @@ -321,8 +321,6 @@ export interface operations { username: string; /** @example password123 */ password: string; - /** @example xxxxxxxxxxxxxxxx */ - registration_token?: string; }; }; }; -- cgit v1.2.3-70-g09d2