feat: improve admin settings and user profile

This commit is contained in:
LukeGus
2026-05-13 01:28:12 -05:00
parent 1be5d20744
commit ec87f8a4d1
10 changed files with 218 additions and 85 deletions
+8 -1
View File
@@ -130,7 +130,14 @@ export function AdminSettings({
Promise.allSettled([
getAdminOIDCConfig()
.then((res) => {
if (res) setOidcConfig(res);
if (res)
setOidcConfig((prev) => ({
...prev,
...res,
identifier_path: (res.identifier_path as string) || "sub",
name_path: (res.name_path as string) || "name",
scopes: (res.scopes as string) || "openid email profile",
}));
})
.catch((err) => {
if (!err.message?.includes("No server configured")) {