From f9fde9b8aaf242704b62d025337393331ff1ce9e Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Tue, 25 Jun 2024 11:25:29 +0300 Subject: Fix Apple sign in --- src/main/java/com/github/scribejava/apis/AppleSignInApi.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/main/java') 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(); } } -- cgit v1.2.3