Fix session expiration and tests

This commit is contained in:
Hendrik Belitz
2025-09-01 15:47:51 +02:00
parent 55ae2fd2a7
commit 8796782d1d
5 changed files with 425 additions and 2 deletions
+1
View File
@@ -92,6 +92,7 @@ export const apiAuthHandle: Handle = async ({ event, resolve }) => {
// Add sessionId to the user object for easy access
event.locals.user = {
userId: sessionData.user.id,
exp: sessionData.exp.valueOf(),
...sessionData.user,
sessionId: sessionData.sessionId
};