method
RiduAuth.bootstrap
Check whether an auth collection still permits its first bootstrap user.
Arguments
| Argument | Type | Description |
|---|---|---|
input | AuthCollectionInput< | The auth collection to check. |
options | RequestOptions | | Request options such as an AbortSignal. |
Returns
The declared result.
Promise<AuthBootstrapEnvelope>Full signature
RiduAuth.bootstrap<
Slug extends AuthCollectionSlug<Config> = SessionCollection<Config, DefaultAuth>
>(
input: AuthCollectionInput<DefaultAuth, Slug>,
options?: RequestOptions,
): Promise<AuthBootstrapEnvelope>Related types
AuthCollectionSlugCollection slugs with the generated auth capability.
SessionCollectionAuth collections a client's sessions can belong to: its default, or every auth collection.
AuthCollectionInputSelects the auth collection for one call. It is optional only when the client was created with
auth.collection, which becomesDefault; otherwise every call names its collection.RequestOptionsOptions shared by every request.
AuthBootstrapEnvelopeWhether the configured admin collection still allows one-time first-user setup.