From 6a49b17e38f4122e7fd40b80a1225b2d48a5ff97 Mon Sep 17 00:00:00 2001 From: XShine555 Date: Sun, 5 Jul 2026 23:45:18 +0200 Subject: [PATCH] refactor(frontend): make SessionUser fields non-null and normalize claims at boundary --- frontend/src/lib/components/Navbar.svelte | 4 ++-- frontend/src/lib/server/auth.ts | 25 ++++++++++++++++---- frontend/src/lib/types.ts | 6 ++--- frontend/src/routes/auth/callback/+server.ts | 6 ++--- 4 files changed, 27 insertions(+), 14 deletions(-) diff --git a/frontend/src/lib/components/Navbar.svelte b/frontend/src/lib/components/Navbar.svelte index af3d981..a295b83 100644 --- a/frontend/src/lib/components/Navbar.svelte +++ b/frontend/src/lib/components/Navbar.svelte @@ -35,10 +35,10 @@ - {(user.name ?? user.email ?? '?').charAt(0)} + {user.name.charAt(0)} {/if} - +