interface
AuthOptions
Authentication settings for one client.
Properties
| Property | Type | Description |
|---|---|---|
collection | Slug | Default auth collection for auth.* calls that do not name one. |
token | SessionTokenStore< | 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. |
memoizeSession | boolean | Reuse 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> { ... }