From 7cc5dbd56b5e7aef24df9a092bc29d4fde56efbb Mon Sep 17 00:00:00 2001 From: kazeyukiro Date: Sun, 13 Sep 2026 14:31:15 +0000 Subject: [PATCH] fix(auth): remove duplicate fetchMe and widen /auth/me type Duplicate export broke tsc -b during frontend embed. Merge into one fetchMe that includes must_change_password for useAuth. fix(auth): remove duplicate fetchMe and widen /auth/me type Duplicate export broke tsc -b during frontend embed. Merge into one fetchMe that includes must_change_password for useAuth. fix(auth): remove duplicate fetchMe and widen /auth/me type Duplicate export broke tsc -b during frontend embed. Merge into one fetchMe that includes must_change_password for useAuth. fix(auth): remove duplicate fetchMe and widen /auth/me type Duplicate export broke tsc -b during frontend embed. Merge into one fetchMe that includes must_change_password for useAuth. fix(auth): remove duplicate fetchMe and widen /auth/me type Duplicate export broke tsc -b during frontend embed. Merge into one fetchMe that includes must_change_password for useAuth. fix(auth): remove duplicate fetchMe and widen /auth/me type Duplicate export broke tsc -b during frontend embed. Merge into one fetchMe that includes must_change_password for useAuth. fix(auth): remove duplicate fetchMe and widen /auth/me type Duplicate export broke tsc -b during frontend embed. Merge into one fetchMe that includes must_change_password for useAuth. fix(auth): remove duplicate fetchMe and widen /auth/me type Duplicate export broke tsc -b during frontend embed. Merge into one fetchMe that includes must_change_password for useAuth. fix(auth): remove duplicate fetchMe and widen /auth/me type Duplicate export broke tsc -b during frontend embed. Merge into one fetchMe that includes must_change_password for useAuth. fix(auth): remove duplicate fetchMe and widen /auth/me type Duplicate export broke tsc -b during frontend embed. Merge into one fetchMe that includes must_change_password for useAuth. fix(auth): remove duplicate fetchMe and widen /auth/me type Duplicate export broke tsc -b during frontend embed. Merge into one fetchMe that includes must_change_password for useAuth. fix(auth): remove duplicate fetchMe and widen /auth/me type Duplicate export broke tsc -b during frontend embed. Merge into one fetchMe that includes must_change_password for useAuth. --- frontend/src/api/auth.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/frontend/src/api/auth.ts b/frontend/src/api/auth.ts index 75aba20..f6879eb 100644 --- a/frontend/src/api/auth.ts +++ b/frontend/src/api/auth.ts @@ -42,7 +42,11 @@ export async function disableTOTP(password: string, code?: string) { return data; } export async function fetchMe() { - const { data } = await client.get<{ totp_enabled?: boolean; username?: string }>('/auth/me'); + const { data } = await client.get<{ + totp_enabled?: boolean; + username?: string; + must_change_password?: boolean; + }>('/auth/me'); return data; } @@ -68,7 +72,3 @@ export async function changePassword(current: string, next: string) { return data; } -export async function fetchMe() { - const { data } = await client.get('/auth/me'); - return data; -}