@perfood/couch-auth
Version:
Easy and secure authentication for CouchDB/Cloudant. Based on SuperLogin, updated and rewritten in Typescript.
13 lines (12 loc) • 499 B
TypeScript
import { Config } from './types/config';
import { HashResult, LocalHashObj } from './types/typings';
export declare function hashCouchPassword(password: string): Promise<HashResult>;
export declare class Hashing {
hashers: any[];
times: number[];
dummyHashObject: LocalHashObj;
constructor(config: Partial<Config>);
private getHasherForTimestamp;
hashUserPassword(pw: string): Promise<HashResult>;
verifyUserPassword(hashObj: HashResult, pw: string): Promise<boolean>;
}