UNPKG

springboot-express

Version:

express-spring-boot

17 lines (16 loc) 548 B
/// <reference types="node" /> import { Cookie } from "lib-utils-ts/src/net/Cookie"; import { ExpressSpringApp } from "./ExpressSpringApp"; export declare enum ALGORITHM_JWT_ACCEPTED { HS256 = "HS256", RS256 = "RS256" } export declare class MiddleWare { private app; constructor(app: ExpressSpringApp); private autoCall; jsonBodyParser(): this; routeLogger(pattern?: string): this; cookieParser(): this; jwtAuthorization(secret: string | Buffer, algorithm?: ALGORITHM_JWT_ACCEPTED, cookieUser?: Cookie): this; }