feat: update stripe OAuth provider

This commit is contained in:
Christy Jacob 2022-04-27 23:10:48 +03:00
parent cf44f8c03d
commit f815201ada
2 changed files with 6 additions and 7 deletions

View file

@ -141,13 +141,9 @@ class Slack extends OAuth2
*/
public function isEmailVerififed(string $accessToken): bool
{
$user = $this->getUser($accessToken);
$email = $this->getUserEmail($accessToken);
if (isset($user['user']['email'])) {
return true;
}
return false;
return !empty($email);
}
/**

View file

@ -144,13 +144,16 @@ class Stripe extends OAuth2
/**
* Check if the OAuth email is verified
*
* Stripe emails if present are verfied.
*
* @param $accessToken
*
* @return bool
*/
public function isEmailVerififed(string $accessToken): bool
{
return false;
$email = $this->getUserEmail($accessToken);
return !empty($email);
}
/**