mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
feat: update Tradeshift OAuth provider
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user