UNPKG

@brontosaurus/db

Version:
7 lines (6 loc) 547 B
import { ResetToken, SpecialPassword } from '../interface/common'; import { PreviousPassword } from '../interface/account'; export declare const garblePassword: (password: string, salt: string) => string; export declare const verifyPreviousPassword: (garbledPassword: string, previousPassword: PreviousPassword) => boolean; export declare const verifySpecialPassword: (garbledPassword: string, specialPassword: SpecialPassword) => boolean; export declare const verifyResetToken: (garbledPassword: string, resetToken: ResetToken) => boolean;