@cimo/authentication
Version:
Authentication middleware. Light, fast and secure.
5 lines (4 loc) • 387 B
TypeScript
import * as model from "./Model";
export declare const writeCookie: (cookieNameValue: string, response: model.Iresponse) => void;
export declare const removeCookie: (cookieName: string, request: model.Irequest, response: model.Iresponse) => void;
export declare const authenticationMiddleware: (request: model.Irequest, response: model.Iresponse, next: (error?: Error) => void) => void;