@mercury-labs/auth
Version:
Mercury framework auth library. It supports local auth, jwt with both bearer token and cookie, basic auth.
14 lines (13 loc) • 682 B
TypeScript
import { Strategy } from 'passport-local';
import { IAuthDefinitions } from '../../domain';
import { LocalLoginAction } from '../actions';
import type { IAuthUserEntityForResponse } from '../definitions';
export declare const LOCAL_STRATEGY_NAME: string;
declare const LocalStrategy_base: new (...args: any[]) => Strategy;
export declare class LocalStrategy extends LocalStrategy_base {
protected readonly authDefinitions: IAuthDefinitions;
protected readonly loginAction: LocalLoginAction;
constructor(authDefinitions: IAuthDefinitions, loginAction: LocalLoginAction);
validate(username: string, password: string): Promise<IAuthUserEntityForResponse>;
}
export {};