interface
Ridu
One application's Ridu binding. It holds configuration, never an authenticated client.
Properties
| Property | Type | Description |
|---|---|---|
baseURL | string | The baseURL value. |
authCollection | Slug | The authCollection value. |
cookieName | string | The cookieName value. |
provide | (options?: ProvideOptions< | 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. |
use | () => RiduClient< | Read the client provided by the root layout. Call it during component initialization. |
__@definitionKey@1895 | RiduDefinition< | The __@definitionKey@1895 value. |
Full signature
interface Ridu<Config extends RiduConfigShape, Slug extends AuthCollectionSlug<Config>> {
...
}Methods
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.sessionis the rendered snapshot.Ridu.use()Read the client provided by the root layout. Call it during component initialization.