feat: update Twitch OAuth provider

This commit is contained in:
Christy Jacob 2022-04-27 23:25:28 +03:00
parent 274a61f2c4
commit 114e8300b7
4 changed files with 12 additions and 6 deletions

View file

@ -131,7 +131,7 @@ class Slack extends OAuth2
/**
* Check if the OAuth email is verified
*
* In case of Slack, if an email is present, it is verified
* If present, the email is verified. This was verfied through a manual Slack sign up process
*
* @link https://slack.com/help/articles/207262907-Change-your-email-address
*

View file

@ -144,7 +144,7 @@ class Stripe extends OAuth2
/**
* Check if the OAuth email is verified
*
* Stripe emails if present are verfied. This was verified manually
* If present, the email is verified. This was verfied through a manual Stripe sign up process
*
* @param $accessToken
*
@ -153,7 +153,7 @@ class Stripe extends OAuth2
public function isEmailVerififed(string $accessToken): bool
{
$email = $this->getUserEmail($accessToken);
return !empty($email);
}

View file

@ -144,7 +144,7 @@ class Tradeshift extends OAuth2
/**
* Check if the OAuth email is verified
*
* Tradeshift's signup process requires emails to be verified. This was verified manually
* If present, the email is verified. This was verfied through a manual Tradeshift sign up process
*
* @param $accessToken
*
@ -153,7 +153,7 @@ class Tradeshift extends OAuth2
public function isEmailVerififed(string $accessToken): bool
{
$email = $this->getUser($accessToken);
return !empty($email);
}

View file

@ -143,13 +143,19 @@ class Twitch extends OAuth2
/**
* Check if the OAuth email is verified
*
* If present, the email is verified
*
* @link https://dev.twitch.tv/docs/api/reference#get-users
*
* @param $accessToken
*
* @return bool
*/
public function isEmailVerififed(string $accessToken): bool
{
return false;
$email = $this->getUserEmail($accessToken);
return !empty($email);
}
/**