diff --git a/src/main.ts b/src/main.ts index 9104c8c..9e5d393 100644 --- a/src/main.ts +++ b/src/main.ts @@ -9,7 +9,15 @@ async function bootstrap() { .setTitle('Montime API') .setDescription('Local services super app API') .setVersion('1.0') - .addBearerAuth() + .addBearerAuth( + { + type: 'http', + scheme: 'bearer', + bearerFormat: 'JWT', + }, + 'bearer', + ) + .addSecurityRequirements('bearer') .build(); const swaggerDocument = SwaggerModule.createDocument(app, swaggerConfig);