Auth Decorator
.addBearerAuth({ in: 'header', type: 'http' })
Multiple Authentication Methods

Last updated
.addBearerAuth({ in: 'header', type: 'http' })

Last updated
const appName = process.env.APP_NAME || 'Backend API';
const options = new DocumentBuilder()
.setTitle(appName)
.setVersion('1.0')
.addBearerAuth({ in: 'header', type: 'http' })
.addApiKey()
.addBasicAuth()
.build();
const document = SwaggerModule.createDocument(app, options);
SwaggerModule.setup('/', app, document, { customSiteTitle: appName });