feat: added check for Dropbox OAuth

This commit is contained in:
Christy Jacob 2022-05-07 14:45:36 +04:00
parent 0a13706f0f
commit e60338065e

View file

@ -140,6 +140,12 @@ class Dropbox extends OAuth2
*/
public function isEmailVerified(string $accessToken): bool
{
$user = $this->getUser($accessToken);
if (isset($user['email_verified']) && $user['email_verified'] === true) {
return true;
}
return false;
}