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

Method addBearerAuth

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

Source from the content-addressed store, hash-verified

206 }
207
208 public addBearerAuth(
209 options: SecuritySchemeObject = {
210 type: 'http'
211 },
212 name = 'bearer'
213 ): this {
214 this.addSecurity(name, {
215 scheme: 'bearer',
216 bearerFormat: 'JWT',
217 ...options
218 });
219 return this;
220 }
221
222 public addOAuth2(
223 options: SecuritySchemeObject = {

Callers 4

bootstrapFunction · 0.80

Calls 1

addSecurityMethod · 0.95

Tested by

no test coverage detected