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