Skip to content

Commit

Permalink
edit : refreshToken Blank 분기 처리 (#129)
Browse files Browse the repository at this point in the history
  • Loading branch information
dlswns2480 authored Aug 24, 2024
1 parent b79a3e0 commit 2574cb2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ class AppleApiAdapter(
}

override fun revoke(refreshToken: String) {
if (refreshToken.isBlank()) {
return
}
val clientSecret = appleSecretGenerator.createClientSecret()

revokeAuth(refreshToken, clientSecret)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ class GoogleApiAdapter(
}

override fun revoke(refreshToken: String) {
if(refreshToken.isBlank()) {
return
}
val revokeResponse = googleFeignClient.revoke(refreshToken)

if (revokeResponse.status() != HttpStatus.SC_OK) {
Expand Down

0 comments on commit 2574cb2

Please sign in to comment.