refactor(frontend): make SessionUser fields non-null and normalize claims at boundary

This commit is contained in:
2026-07-05 23:45:18 +02:00
parent 539fad1d22
commit b9d14412e6
4 changed files with 27 additions and 14 deletions
+2 -2
View File
@@ -35,10 +35,10 @@
<span
class="grid h-7 w-7 place-items-center rounded-full bg-neutral-700 text-xs font-semibold uppercase"
>
{(user.name ?? user.email ?? '?').charAt(0)}
{user.name.charAt(0)}
</span>
{/if}
<span class="hidden sm:inline">{user.name ?? user.email}</span>
<span class="hidden sm:inline">{user.name}</span>
</a>
<form method="POST" action="/logout">
<button