[READ-ONLY] Mirror of https://github.com/flo-bit/atmo-tools. atmo.tools
0

Configure Feed

Select the types of activity you want to include in your feed.

atmo-tools / src / hooks.server.ts
378 B 10 lines
1import type { Handle } from '@sveltejs/kit'; 2import { restoreSession } from '$lib/atproto/server/session'; 3 4export const handle: Handle = async ({ event, resolve }) => { 5 const { session, client, did } = await restoreSession(event.cookies, event.platform?.env); 6 event.locals.session = session; 7 event.locals.client = client; 8 event.locals.did = did; 9 return resolve(event); 10};