Skip to content

Commit

Permalink
hotfix: 잘못된 유효성 검증 로직 삭제
Browse files Browse the repository at this point in the history
  • Loading branch information
hong-sile committed Apr 6, 2024
1 parent b088918 commit b333d0d
Showing 1 changed file with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
public class AppleTokenValidator {

public static void validateAppleIdToken(final Map<String, Object> claims, final String email) {
validateEmail(claims, email);
validateExp(claims);
validateIssuer(claims);
}
Expand All @@ -30,11 +29,5 @@ private static void validateExp(final Map<String, Object> claims) {
throw new IllegalArgumentException("Id 토큰의 유효기간이 만료되었습니다.");
}
}

private static void validateEmail(final Map<String, Object> claims, String email) {
final Object extractedEmail = claims.get("email");
if (!extractedEmail.equals(email)) {
throw new IllegalArgumentException("유효하지 않은 id토큰 이거나 이메일입니다.");
}
}
}

0 comments on commit b333d0d

Please sign in to comment.