From 0a13706f0fd007fd41a655b96ad853e9bcf8823a Mon Sep 17 00:00:00 2001 From: Christy Jacob Date: Fri, 6 May 2022 00:41:35 +0400 Subject: [PATCH] feat: added check for Facebook OAuth --- src/Appwrite/Auth/OAuth2/Facebook.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Appwrite/Auth/OAuth2/Facebook.php b/src/Appwrite/Auth/OAuth2/Facebook.php index 888f45caea..619504207e 100644 --- a/src/Appwrite/Auth/OAuth2/Facebook.php +++ b/src/Appwrite/Auth/OAuth2/Facebook.php @@ -132,13 +132,17 @@ class Facebook extends OAuth2 /** * Check if the OAuth email is verified * + * If present, the email is verified. This was verfied through a manual Facebook sign up process + * * @param $accessToken * * @return bool */ public function isEmailVerified(string $accessToken): bool { - return false; + $email = $this->getUserEmail($accessToken); + + return !empty($email); } /**