MCPcopy
hub / github.com/nestjs/swagger / addBasicAuth

Method addBasicAuth

lib/document-builder.ts:251–263  ·  view source on GitHub ↗
(
    options: SecuritySchemeObject = {
      type: 'http'
    },
    name = 'basic'
  )

Source from the content-addressed store, hash-verified

249 }
250
251 public addBasicAuth(
252 options: SecuritySchemeObject = {
253 type: 'http'
254 },
255 name = 'basic'
256 ): this {
257 this.addSecurity(name, {
258 type: 'http',
259 scheme: 'basic',
260 ...options
261 });
262 return this;
263 }
264
265 public addCookieAuth(
266 cookieName = 'connect.sid',

Callers 4

bootstrapFunction · 0.80

Calls 1

addSecurityMethod · 0.95

Tested by

no test coverage detected