mirror of
https://github.com/appwrite/appwrite
synced 2026-05-22 16:38:32 +00:00
feat: update Tradeshift OAuth provider
This commit is contained in:
parent
f815201ada
commit
274a61f2c4
3 changed files with 9 additions and 2 deletions
|
|
@ -144,6 +144,8 @@ class Spotify extends OAuth2
|
|||
/**
|
||||
* Check if the OAuth email is verified
|
||||
*
|
||||
* Spotify does not assure that the email is verified
|
||||
*
|
||||
* @link https://developer.spotify.com/documentation/web-api/reference/#/operations/get-current-users-profile
|
||||
*
|
||||
* @param $accessToken
|
||||
|
|
|
|||
|
|
@ -144,7 +144,7 @@ class Stripe extends OAuth2
|
|||
/**
|
||||
* Check if the OAuth email is verified
|
||||
*
|
||||
* Stripe emails if present are verfied.
|
||||
* Stripe emails if present are verfied. This was verified manually
|
||||
*
|
||||
* @param $accessToken
|
||||
*
|
||||
|
|
@ -153,6 +153,7 @@ class Stripe extends OAuth2
|
|||
public function isEmailVerififed(string $accessToken): bool
|
||||
{
|
||||
$email = $this->getUserEmail($accessToken);
|
||||
|
||||
return !empty($email);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -144,13 +144,17 @@ class Tradeshift extends OAuth2
|
|||
/**
|
||||
* Check if the OAuth email is verified
|
||||
*
|
||||
* Tradeshift's signup process requires emails to be verified. This was verified manually
|
||||
*
|
||||
* @param $accessToken
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function isEmailVerififed(string $accessToken): bool
|
||||
{
|
||||
return false;
|
||||
$email = $this->getUser($accessToken);
|
||||
|
||||
return !empty($email);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue