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