method

Ridu.provide

Create the client for this mounted application and share it with descendants. Call it once, during initialization of the root layout. Server renders get an isolated, credential-free client whose auth.session is the rendered snapshot.

Arguments

ArgumentTypeDescription
optionsProvideOptions<SessionFor<Config, Slug>> | undefinedThe options value.

Returns

The declared result.

RiduClient<Config, Slug>

Full signature

Ridu.provide( options?: ProvideOptions<SessionFor<Config, Slug>>, ): RiduClient<Config, Slug>

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

Related types

  • ProvideOptions

    Public interface ProvideOptions from @riducms/sveltekit.