diff options
| author | nsfisis <nsfisis@gmail.com> | 2025-03-04 23:39:26 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2025-03-04 23:39:26 +0900 |
| commit | efd34b970d0d1f88fa7d7e9d69e569f039867ca2 (patch) | |
| tree | ba1e5a51e2fac9ecbe7b9b3e0e197bdb327f2a4e /frontend/app/.server/api/client.ts | |
| parent | bd9c2e8b587c733059d44f642c53536eb7fe1ec9 (diff) | |
| download | phperkaigi-2025-albatross-efd34b970d0d1f88fa7d7e9d69e569f039867ca2.tar.gz phperkaigi-2025-albatross-efd34b970d0d1f88fa7d7e9d69e569f039867ca2.tar.zst phperkaigi-2025-albatross-efd34b970d0d1f88fa7d7e9d69e569f039867ca2.zip | |
rm registration token
Diffstat (limited to 'frontend/app/.server/api/client.ts')
| -rw-r--r-- | frontend/app/.server/api/client.ts | 9 |
1 files changed, 1 insertions, 8 deletions
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<paths>({ : "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); |
