aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/github/scribejava/apis
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2024-06-25 11:25:29 +0300
committerGravatar Vitaly Takmazov2024-06-25 11:25:29 +0300
commitf9fde9b8aaf242704b62d025337393331ff1ce9e (patch)
tree74be2458531c685ea5bc20dd7b5b85561cc331e3 /src/main/java/com/github/scribejava/apis
parentb929c4e05d91cc2814c596aa3f90d148ff73bac0 (diff)
Fix Apple sign in
Diffstat (limited to 'src/main/java/com/github/scribejava/apis')
-rw-r--r--src/main/java/com/github/scribejava/apis/AppleSignInApi.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/com/github/scribejava/apis/AppleSignInApi.java b/src/main/java/com/github/scribejava/apis/AppleSignInApi.java
index 5d11a2a6..9e487ca0 100644
--- a/src/main/java/com/github/scribejava/apis/AppleSignInApi.java
+++ b/src/main/java/com/github/scribejava/apis/AppleSignInApi.java
@@ -114,7 +114,8 @@ public class AppleSignInApi extends DefaultApi20 {
}
String email = (String) claimsSet.get("email");
- boolean verified = claimsSet.get("email_verified").equals("true");
+ boolean verified = claimsSet.get("email_verified").equals(true);
+ logger.debug("Email {} verified: {}", email, verified);
return verified ? Optional.of(email) : Optional.empty();
}
}