2024-12-01 22:48:00 +01:00
|
|
|
import type { Handle } from '@sveltejs/kit';
|
|
|
|
|
|
|
|
export const handle: Handle = async ({ event, resolve }) => {
|
|
|
|
event.locals.token = await event.cookies.get('token');
|
2024-12-03 19:20:00 +01:00
|
|
|
event.locals.userId = await event.cookies.get('UID');
|
2024-12-01 22:48:00 +01:00
|
|
|
|
|
|
|
return await resolve(event);
|
|
|
|
};
|