4 Matching Annotations
- Jan 2022
-
stackoverflow.com stackoverflow.com
-
In hooks.js I have a handle function that basically does request.locals.jwt = cookies.jwt, and then a getSession function that returns { jwt: locals.jwt }
-
- Jun 2021
-
github.com github.com
-
(load functions call handle directly, there's no intermediate network requests.)
-
- May 2021
-
kit.svelte.dev kit.svelte.dev
-
This function runs on every request, for both pages and endpoints, and determines the response. It receives the request object and a function called resolve, which invokes SvelteKit's router and generates a response accordingly.
-
This allows you to modify response headers or bodies, or bypass SvelteKit entirely
-