Skip to content

Commit

Permalink
🐛 Apple Revoke 코드 변경
Browse files Browse the repository at this point in the history
Controller에 @RequestParam로 변경, Service에 getAccessToken 코드 수정
  • Loading branch information
min-0 committed Sep 23, 2024
1 parent aa5b4ab commit 8efb568
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public ReissueTokenResponse reissueToken(@RequestBody ReIssueTokenRequest reissu
}

@DeleteMapping("/withdraw")
public void withdraw(@Valid @RequestBody AppleWithdrawRequest withdrawRequest, AuthenticationMember authenticationMember) {
public void withdraw(@Valid @RequestParam AppleWithdrawRequest withdrawRequest, AuthenticationMember authenticationMember) {
// 1. Apple 서버에서 Access Token 받아오기
String accessToken = appleOAuthService.getAccessToken(withdrawRequest.authorizationCode());

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,13 +88,12 @@ private PrivateKey getPrivateKey() {
}

public String getAccessToken(String authorizationCode) {
AppleSocialTokenInfoResponse tokenInfo = appleClient.getIdToken(
return appleClient.getIdToken(
appleProperties.getClientId(),
generateClientSecret(),
appleProperties.getGrantType(),
authorizationCode
);
return tokenInfo.accessToken();
).accessToken();
}

public void revoke(String accessToken) {
Expand Down

0 comments on commit 8efb568

Please sign in to comment.