feat: added check for Facebook OAuth

This commit is contained in:
Christy Jacob 2022-05-06 00:41:35 +04:00
parent e58c8095cd
commit 0a13706f0f

View file

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