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