UNPKG

@raddiamond/nexauth-core

Version:

Core authentication plugin supporting Local, AD authentication

14 lines (13 loc) 496 B
import { AuthStep } from './IdentityProvider'; export interface StepAuthResult<TUser = any> { success: boolean; user?: TUser; nextStep?: string; error?: string; } export declare class StepAuthEngine<TUser = any> { private steps; constructor(steps: AuthStep<TUser>[]); authenticate(user: TUser | undefined, input: Record<string, any>): Promise<StepAuthResult<TUser>>; getNextStep(user: TUser | undefined, input: Record<string, any>): Promise<string | undefined>; }