mirror of
https://github.com/open-reception/appointment-booking-software.git
synced 2026-09-30 20:54:49 +02:00
Fix session expiration and tests
This commit is contained in:
@@ -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
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user