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

Method addOAuth2

lib/document-builder.ts:222–234  ·  view source on GitHub ↗
(
    options: SecuritySchemeObject = {
      type: 'oauth2'
    },
    name = 'oauth2'
  )

Source from the content-addressed store, hash-verified

220 }
221
222 public addOAuth2(
223 options: SecuritySchemeObject = {
224 type: 'oauth2'
225 },
226 name = 'oauth2'
227 ): this {
228 this.addSecurity(name, {
229 type: 'oauth2',
230 flows: {},
231 ...options
232 });
233 return this;
234 }
235
236 public addApiKey(
237 options: SecuritySchemeObject = {

Callers 4

bootstrapFunction · 0.80

Calls 1

addSecurityMethod · 0.95

Tested by

no test coverage detected