Skip to content

Commit

Permalink
feat: Swagger Auth 추가 (bearer JWT)
Browse files Browse the repository at this point in the history
  • Loading branch information
zerosial committed Jan 4, 2024
1 parent fc6ce59 commit e7a2369
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ async function bootstrap() {
.setTitle(swaggerConfig.title || 'Nestjs')
.setDescription(swaggerConfig.description || 'The nestjs API description')
.setVersion(swaggerConfig.version || '1.0')
.addBearerAuth(
{ type: 'http', scheme: 'bearer', bearerFormat: 'Token' },
'access-token',
)
.build();
const document = SwaggerModule.createDocument(app, options);

Expand Down

0 comments on commit e7a2369

Please sign in to comment.