feat(adminfront): add user profile dropdown and enhance session sync

This commit is contained in:
chan committed 2026-03-03 12:56:57 +09:00
1 parent 86ef9c6f60
commit 1c3985ce19
6 files changed
+146 -26

No files matched your search

+20
View File
@@ -436,6 +436,26 @@ export async function deleteUser(userId: string) {
await apiClient.delete(`/v1/admin/users/${userId}`);
}
export type UserProfileResponse = {
id: string;
email: string;
name: string;
phone: string;
role: string;
department: string;
affiliationType: string;
companyCode?: string;
tenantId?: string;
metadata?: Record<string, unknown>;
tenant?: TenantSummary;
manageableTenants?: TenantSummary[];
};
export async function fetchMe() {
const { data } = await apiClient.get<UserProfileResponse>("/v1/user/me");
return data;
}
// Relying Party Management
export type RelyingParty = {
clientId: string;