8 lines
No EOL
252 B
TypeScript
8 lines
No EOL
252 B
TypeScript
import type { Handle } from '@sveltejs/kit';
|
|
|
|
export const handle: Handle = async ({ event, resolve }) => {
|
|
event.locals.token = await event.cookies.get('token');
|
|
event.locals.userId = await event.cookies.get('UID');
|
|
|
|
return await resolve(event);
|
|
}; |