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

Method addCookieAuth

lib/document-builder.ts:265–279  ·  view source on GitHub ↗
(
    cookieName = 'connect.sid',
    options: SecuritySchemeObject = {
      type: 'apiKey'
    },
    securityName = 'cookie'
  )

Source from the content-addressed store, hash-verified

263 }
264
265 public addCookieAuth(
266 cookieName = 'connect.sid',
267 options: SecuritySchemeObject = {
268 type: 'apiKey'
269 },
270 securityName = 'cookie'
271 ): this {
272 this.addSecurity(securityName, {
273 type: 'apiKey',
274 in: 'cookie',
275 name: cookieName,
276 ...options
277 });
278 return this;
279 }
280
281 public build(): Omit<OpenAPIObject, 'paths'> {
282 return this.document;

Callers 4

bootstrapFunction · 0.80

Calls 1

addSecurityMethod · 0.95

Tested by

no test coverage detected