UNPKG

@mercury-labs/auth

Version:

Mercury framework auth library. It supports local auth, jwt with both bearer token and cookie, basic auth.

10 lines (9 loc) 454 B
export declare const AUTH_PASSWORD_HASHER: symbol; export declare abstract class PasswordHasherService<T = any> { abstract hash(password: string): Promise<T>; abstract compare(password: string, hashedPassword: T): Promise<boolean>; } export declare class BcryptPasswordHasherService implements PasswordHasherService<string> { hash(password: string): Promise<string>; compare(password: string, hashedPassword: string): Promise<boolean>; }