UNPKG

@perfood/couch-auth

Version:

Easy and secure authentication for CouchDB/Cloudant. Based on SuperLogin, updated and rewritten in Typescript.

16 lines (15 loc) 547 B
import { Config } from './types/config'; import { HashResult, LocalHashObj } from './types/typings'; /** * Class for hashing and verifying sl-user passwords * @deprecated Use UserHashing in user-hashing.ts instead. */ export declare class UserHashingLegacy { hashers: any[]; times: number[]; dummyHashObject: LocalHashObj; constructor(config: Partial<Config>); private getHasherForTimestamp; hashUserPassword(pw: string): Promise<HashResult>; verifyUserPassword(hashObj: HashResult, pw: string): Promise<boolean>; }