fix: email verified false on null
This commit is contained in:
parent
3e0f63e499
commit
acebe54e5e
1 changed files with 5 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue