UNPKG

@perfood/couch-auth

Version:

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

15 lines (14 loc) 509 B
import { LocalHashObj } from './types/typings'; export declare class Session { static invalidErr: { status: number; message: string; }; constructor(); /** * Confirms that the password matches with the provided token and returns the * token, if successful, but removes the information that should not be sent * to the client. */ confirmToken<T extends LocalHashObj>(token: T, password: string): Promise<Omit<T, 'salt' | 'derived_key' | 'iterations'>>; }