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
+5 -1
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;
}
/**