1
0
Fork 0
mirror of synced 2024-10-01 01:37:56 +13:00

fix: email verified false on null

This commit is contained in:
Utkarsh Ahuja 2023-12-31 19:27:12 +05:30
parent 3e0f63e499
commit acebe54e5e

View file

@ -149,7 +149,11 @@ class Zoho extends OAuth2
*/
public function isEmailVerified(string $accessToken): bool
{
return $this->user['email_verified'] ?? '';
if ($this->user['email_verified'] ?? false) {
return true;
}
return false;
}
/**