feat: update Tradeshift OAuth provider

This commit is contained in:
Christy Jacob 2022-04-27 23:19:15 +03:00
parent f815201ada
commit 274a61f2c4
3 changed files with 9 additions and 2 deletions

View file

@ -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

View file

@ -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);
}

View file

@ -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);
}
/**