fix(frontend): hide server-authenticated user identity

This commit is contained in:
User
2026-08-22 22:20:33 +02:00
parent 3fdc278e7a
commit c476c5551b
3 changed files with 13 additions and 8 deletions
+4 -6
View File
@@ -716,16 +716,14 @@ export function AppShell({ canLogout }: AppShellProps) {
<br />
Human In The Loop
</p>
{authenticatedUser && (
{authenticatedUser && canLogout && (
<div className="mt-4 flex items-center justify-between gap-2 border-t border-border/70 pt-3 text-left">
<span className="min-w-0 truncate text-xs text-muted-foreground" title={authenticatedUser.displayName ?? authenticatedUser.subject}>
{authenticatedUser.displayName ?? authenticatedUser.subject}
</span>
{canLogout && (
<Button variant="ghost" size="xs" onClick={() => { void signOut().catch(() => undefined); }}>
Log out
</Button>
)}
<Button variant="ghost" size="xs" onClick={() => { void signOut().catch(() => undefined); }}>
Log out
</Button>
</div>
)}
</div>