feat: added check for Box OAuth

This commit is contained in:
Christy Jacob 2022-05-07 15:03:00 +04:00
parent dcaa89e75f
commit 984c6f0e30

View file

@ -150,15 +150,19 @@ class Box extends OAuth2
/**
* Check if the OAuth email is verified
*
* If present, the email is verified. This was verfied through a manual Box sign up process
*
* @param $accessToken
*
* @return bool
*/
public function isEmailVerified(string $accessToken): bool
{
return false;
}
$email = $this->getUserEmail($accessToken);
return !empty($email);
}
/**
* @param string $accessToken
*