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.
This commit is contained in:
kazeyukiro committed 2026-09-13 14:31:15 +00:00
1 parent 9299dbfd0d
commit 7cc5dbd56b
1 file changed
+5 -5
+5 -5
View File
@@ -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;
}