feat: added check for Microsoft OAuth

This commit is contained in:
Christy Jacob 2022-05-05 15:09:43 +04:00
parent cd31cf22d5
commit 7e4e0135b6

View file

@ -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);
}
/**