mirror of
https://github.com/appwrite/appwrite
synced 2026-05-23 17:08:45 +00:00
feat: update stripe OAuth provider
This commit is contained in:
parent
cf44f8c03d
commit
f815201ada
2 changed files with 6 additions and 7 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue