fix(auth): read JSESSIONID cookie to match Spring Security default

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-02 13:57:34 +02:00
parent 92c7d8f92e
commit 32550377aa
2 changed files with 5 additions and 2 deletions

View File

@@ -23,7 +23,7 @@ export const handle: Handle = async ({ event, resolve }) => {
return resolve(event);
}
const sessionCookie = event.cookies.get('session');
const sessionCookie = event.cookies.get('JSESSIONID');
if (!sessionCookie) {
loginRedirect(event.url.pathname);
}