@raddiamond/nexauth-core
Version:
Core authentication plugin supporting Local, AD authentication
7 lines (6 loc) • 456 B
TypeScript
import { OTPValidator } from './IdentityProvider';
export declare class CommonAuthService {
static findUserByUsername(repo: any, matchField: string, username: string): Promise<any>;
static validatePassword(password: string, passwordHash: string, comparePassword?: (plain: string, hashed: string) => Promise<boolean>): Promise<boolean>;
static validateOTP<TUser>(otp: string, user: TUser, otpValidator: OTPValidator<TUser>): Promise<boolean>;
}