interface

AuthOptions

Authentication settings for one client.

Properties

PropertyTypeDescription
collectionSlugDefault auth collection for auth.* calls that do not name one.
tokenSessionTokenStore<unknown>Use the token transport: login requests { transport: "token" } and every request sends Authorization: Session <token>. Without a store the client uses Ridu's HttpOnly cookie.
memoizeSessionbooleanReuse the first verified auth.getSession() result for the same token. Enable it only for a client that serves one incoming request, such as a server-render client.

Full signature

interface AuthOptions<Slug extends string = string> { ... }

Source packages/sdk/src/index.ts:17