UNPKG

@light-auth/core

Version:

light auth core framework agnostic, using arctic

21 lines (20 loc) 1.01 kB
import { type LightAuthConfig, type BaseResponse, type LightAuthSession, type LightAuthUser } from "../models"; /** * Handles password reset requests. * This handler initiates the password reset process by sending a reset email. */ export declare function credentialsResetPasswordRequestHandler<Session extends LightAuthSession = LightAuthSession, User extends LightAuthUser<Session> = LightAuthUser<Session>>(args: { config: LightAuthConfig<Session, User>; email: string; [key: string]: unknown; }): Promise<BaseResponse>; /** * Handles password reset confirmation with token. * This handler completes the password reset process by setting a new password. */ export declare function credentialsResetPasswordConfirmHandler<Session extends LightAuthSession = LightAuthSession, User extends LightAuthUser<Session> = LightAuthUser<Session>>(args: { config: LightAuthConfig<Session, User>; token: string; newPassword: string; [key: string]: unknown; }): Promise<BaseResponse>;