(
cookieName = 'connect.sid',
options: SecuritySchemeObject = {
type: 'apiKey'
},
securityName = 'cookie'
)
| 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; |
no test coverage detected