UNPKG

summer-glove

Version:

[![npm version](https://img.shields.io/npm/v/npm-package.svg?style=flat)](https://www.npmjs.com/package/summer-glove) ## Fit like a glove 🧤 Summer-glove is a route manager, providing a quick and easy way to configure an express application. Summer-glo

33 lines (32 loc) • 1.02 kB
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.AuthType = void 0; const SwaggerInformationCore_1 = __importDefault(require("../../application/core/SwaggerInformationCore")); exports.AuthType = { BEARER_JWT: () => { SwaggerInformationCore_1.default.getInstance().setSecurity({ Bearer: [] }); return { Bearer: { type: "apiKey", name: "Authorization", in: "header", description: ">- Place the `Bearer` prefix before placing the token" } }; }, BASIC: () => { SwaggerInformationCore_1.default.getInstance().setSecurity({ basicAuth: [] }); return { basicAuth: { type: "basic" } }; } };