method
RiduClient.login
RiduClient.login<Slug extends AuthCollectionSlug<Config>>(
collection: Slug,
credentials: LoginCredentials,
options?: RequestOptions,
): Promise<AuthSession<OutputFor<Config, Slug>>>Authenticate against an auth-enabled collection.
Related types
AuthCollectionSlugCollection slugs with the generated auth capability.
LoginCredentialsEmail and password credentials.
RequestOptionsOptions shared by every request.
AuthSessionAn authenticated user session.
OutputForResolve a collection document output type.