Skip to content

Commit

Permalink
fix: 토스 승인 API 요청 시 Basic 인증 헤더로 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
kmebin committed Nov 29, 2023
1 parent 3408228 commit 1b45531
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public void init() {
.baseUrl(config.baseUrl())
.defaultHeaders(headers -> {
headers.add(HttpHeaders.CONTENT_TYPE, MediaType.APPLICATION_JSON_VALUE);
headers.setBearerAuth(Base64.getEncoder().encodeToString(config.secretKey().getBytes()));
headers.setBasicAuth(Base64.getEncoder().encodeToString(config.secretKey().getBytes()));
})
.build();
}
Expand Down

0 comments on commit 1b45531

Please sign in to comment.