UNPKG

@light-auth/core

Version:

light auth core framework agnostic, using arctic

13 lines (12 loc) 575 B
import { type LightAuthConfig, type BaseResponse, type LightAuthSession, type LightAuthUser } from "../models"; /** * Handles credential-based login (email/password). * This handler validates user credentials and creates a session. */ export declare function credentialsLoginHandler<Session extends LightAuthSession = LightAuthSession, User extends LightAuthUser<Session> = LightAuthUser<Session>>(args: { config: LightAuthConfig<Session, User>; email: string; password: string; callbackUrl?: string; [key: string]: unknown; }): Promise<BaseResponse>;