UNPKG

@light-auth/core

Version:

light auth core framework agnostic, using arctic

17 lines (16 loc) 678 B
import { type LightAuthConfig, type BaseResponse, type LightAuthSession, type LightAuthUser } from "../models"; /** * Handles user registration for credential-based authentication. * This handler creates a new user account and optionally logs them in. */ export declare function credentialsRegisterHandler<Session extends LightAuthSession = LightAuthSession, User extends LightAuthUser<Session> = LightAuthUser<Session>>(args: { config: LightAuthConfig<Session, User>; email: string; password: string; name?: string; autoLogin?: boolean; additionalData?: { [key: string]: unknown; }; [key: string]: unknown; }): Promise<BaseResponse>;