function
createRiduHandle
A SvelteKit handle that sets event.locals.ridu for each request. Compose it with other hooks through sequence.
Arguments
| Argument | Type | Description |
|---|---|---|
ridu | Binding< | The ridu value. |
options | ServerClientOptions | The options value. |
Returns
The declared result.
RiduHandleFull signature
function createRiduHandle<Config extends RiduConfigShape, Slug extends AuthCollectionSlug<Config>>(
ridu: Binding<Config, Slug>,
options?: ServerClientOptions,
): RiduHandleRelated types
ServerClientOptionsPublic interface ServerClientOptions from @riducms/sveltekit.
RiduHandleA server
handlehook. SvelteKit 2 exportsHandlefrom@sveltejs/kitand SvelteKit 3 from@sveltejs/kit/hooks; this shape is assignable to both.