Skip to content

Commit

Permalink
refactor: 토큰을 입력하는 스키마를 생성하는 메서드 이름 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
Mingyum-Kim committed Aug 4, 2024
1 parent e0897cc commit ed71602
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/src/main/java/mouda/backend/config/SwaggerConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ public OpenAPI openAPI() {
return new OpenAPI().addSecurityItem(
new SecurityRequirement().addList("Bearer Authorization"))
.components(new Components().addSecuritySchemes(
"Bearer Authorization", createAPIKeyScheme()
"Bearer Authorization", createBearerTokenScheme()
));
}

private SecurityScheme createAPIKeyScheme() {
private SecurityScheme createBearerTokenScheme() {
return new SecurityScheme().type(SecurityScheme.Type.HTTP)
.bearerFormat("JWT")
.scheme("bearer");
Expand Down

0 comments on commit ed71602

Please sign in to comment.