interface

RiduDefinitionOptions

Public interface RiduDefinitionOptions from @riducms/sveltekit.

Properties

PropertyTypeDescription
createClientFactoryThe generated factory, which binds the application's types.
baseURLstringPublic Ridu origin, such as PUBLIC_RIDU_URL. Browsers call it directly.
authCollectionSlugThe auth collection whose users sign in to this application.
cookieNamestringFrontend-domain cookie that stores the session token. Defaults to ridu_token.
fetch((input: Parameters<typeof globalThis.fetch>[0], init?: Parameters<typeof globalThis.fetch>[1]) => ReturnType<typeof globalThis.fetch>) | undefinedFetch used by server-side clients. Defaults to SvelteKit's event.fetch.

Full signature

interface RiduDefinitionOptions<Factory extends ClientFactory, Slug extends string> { ... }

Source packages/sveltekit/src/lib/index.ts:19

Methods