From 20297c6800aa31541691831fc1d7900362cee2d3 Mon Sep 17 00:00:00 2001 From: drifterza Date: Tue, 24 Feb 2026 18:40:09 +0200 Subject: [PATCH] fix pre-auth keys not showing for oidc users without username --- app/routes/settings/auth-keys/overview.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/routes/settings/auth-keys/overview.tsx b/app/routes/settings/auth-keys/overview.tsx index 49a63b6..7f8a5b9 100644 --- a/app/routes/settings/auth-keys/overview.tsx +++ b/app/routes/settings/auth-keys/overview.tsx @@ -23,7 +23,7 @@ export async function loader({ request, context }: Route.LoaderArgs) { const users = await api.getUsers(); const preAuthKeys = await Promise.all( users - .filter((user) => user.name?.length > 0) // Filter out any invalid users + .filter((user) => user.id?.length > 0) // Filter out users without valid IDs .map(async (user) => { try { const preAuthKeys = await api.getPreAuthKeys(user.id); @@ -147,7 +147,7 @@ export default function Page({ An error occurred while fetching the authentication keys for the following users:{" "} {missing.map(({ user }, index) => ( <> - {user.name} + {user.name || user.displayName || user.email || user.id} {index < missing.length - 1 ? ", " : ". "} ))}