cognito-srp
Version:
Secure Remote Password protocol implementation compatible with Amazon Cognito.
14 lines (13 loc) • 527 B
TypeScript
import * as express from 'express';
export declare type HandlerMap<TAction extends string = string> = {
[P in TAction]: (request: express.Request, response: express.Response) => Promise<any>;
};
export declare class AwsEndpoint<TAction extends string = string> {
private service;
readonly app: express.Express;
private server;
constructor(service: string, handlers: HandlerMap<TAction>, app?: express.Express);
start(port?: number): Promise<number>;
stop(): void;
private getHandlerBuilder();
}