UNPKG

@perfood/couch-auth

Version:

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

15 lines (14 loc) 478 B
import { Config } from './types/config'; import { HashResult, LocalHashObj } from './types/typings'; /** * Class for hashing and verifying sl-user passwords */ 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>; }