UNPKG

@perfood/couch-auth

Version:

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

18 lines (17 loc) 544 B
import { Config } from './types/config'; import { HashResult } from './types/typings'; export declare class SessionHashing { static invalidErr: { status: number; message: string; }; private pwdCouch; private iterations; private pbkdf2Prf; private keyLength; private saltLength; constructor(config: Partial<Config>); hashSessionPassword(password: string): Promise<HashResult>; verifySessionPassword(hashObj: HashResult, pw: string): Promise<boolean>; private static createPwdModule; }