feat: add method to check for email verification
This commit is contained in:
parent
957a99ce38
commit
16c45fad29
|
@ -81,11 +81,13 @@ abstract class OAuth2
|
|||
abstract public function getUserEmail(string $accessToken): string;
|
||||
|
||||
/**
|
||||
* Is the OAuth email verified?
|
||||
* Check if the OAuth email is verified
|
||||
*
|
||||
* @param $accessToken
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
abstract public function isEmailVerififed(): bool;
|
||||
abstract public function isEmailVerififed(string $accessToken): bool;
|
||||
|
||||
/**
|
||||
* @param $accessToken
|
||||
|
|
|
@ -147,11 +147,13 @@ class Amazon extends OAuth2
|
|||
}
|
||||
|
||||
/**
|
||||
* Is the OAuth email verified?
|
||||
* Check if the OAuth email is verified
|
||||
*
|
||||
* @param $accessToken
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function isEmailVerififed(): bool
|
||||
public function isEmailVerififed(string $accessToken): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
|
|
@ -147,11 +147,13 @@ class Apple extends OAuth2
|
|||
}
|
||||
|
||||
/**
|
||||
* Is the OAuth email verified?
|
||||
* Check if the OAuth email is verified
|
||||
*
|
||||
* @param $accessToken
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function isEmailVerififed(): bool
|
||||
public function isEmailVerififed(string $accessToken): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
|
|
@ -131,11 +131,13 @@ class Bitbucket extends OAuth2
|
|||
}
|
||||
|
||||
/**
|
||||
* Is the OAuth email verified?
|
||||
* Check if the OAuth email is verified
|
||||
*
|
||||
* @param $accessToken
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function isEmailVerififed(): bool
|
||||
public function isEmailVerififed(string $accessToken): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
|
|
@ -149,11 +149,13 @@ class Bitly extends OAuth2
|
|||
}
|
||||
|
||||
/**
|
||||
* Is the OAuth email verified?
|
||||
* Check if the OAuth email is verified
|
||||
*
|
||||
* @param $accessToken
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function isEmailVerififed(): bool
|
||||
public function isEmailVerififed(string $accessToken): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
|
|
@ -148,11 +148,13 @@ class Box extends OAuth2
|
|||
}
|
||||
|
||||
/**
|
||||
* Is the OAuth email verified?
|
||||
* Check if the OAuth email is verified
|
||||
*
|
||||
* @param $accessToken
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function isEmailVerififed(): bool
|
||||
public function isEmailVerififed(string $accessToken): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
|
|
@ -142,11 +142,13 @@ class Discord extends OAuth2
|
|||
}
|
||||
|
||||
/**
|
||||
* Is the OAuth email verified?
|
||||
* Check if the OAuth email is verified
|
||||
*
|
||||
* @param $accessToken
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function isEmailVerififed(): bool
|
||||
public function isEmailVerififed(string $accessToken): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
|
|
@ -132,11 +132,13 @@ class Dropbox extends OAuth2
|
|||
}
|
||||
|
||||
/**
|
||||
* Is the OAuth email verified?
|
||||
* Check if the OAuth email is verified
|
||||
*
|
||||
* @param $accessToken
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function isEmailVerififed(): bool
|
||||
public function isEmailVerififed(string $accessToken): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
|
|
@ -130,11 +130,13 @@ class Facebook extends OAuth2
|
|||
}
|
||||
|
||||
/**
|
||||
* Is the OAuth email verified?
|
||||
* Check if the OAuth email is verified
|
||||
*
|
||||
* @param $accessToken
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function isEmailVerififed(): bool
|
||||
public function isEmailVerififed(string $accessToken): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
|
|
@ -138,11 +138,13 @@ class Github extends OAuth2
|
|||
}
|
||||
|
||||
/**
|
||||
* Is the OAuth email verified?
|
||||
* Check if the OAuth email is verified
|
||||
*
|
||||
* @param $accessToken
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function isEmailVerififed(): bool
|
||||
public function isEmailVerififed(string $accessToken): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
|
|
@ -128,11 +128,13 @@ class Gitlab extends OAuth2
|
|||
}
|
||||
|
||||
/**
|
||||
* Is the OAuth email verified?
|
||||
* Check if the OAuth email is verified
|
||||
*
|
||||
* @param $accessToken
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function isEmailVerififed(): bool
|
||||
public function isEmailVerififed(string $accessToken): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
|
|
@ -138,11 +138,13 @@ class Google extends OAuth2
|
|||
}
|
||||
|
||||
/**
|
||||
* Is the OAuth email verified?
|
||||
* Check if the OAuth email is verified
|
||||
*
|
||||
* @param $accessToken
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function isEmailVerififed(): bool
|
||||
public function isEmailVerififed(string $accessToken): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
|
|
@ -149,11 +149,13 @@ class Linkedin extends OAuth2
|
|||
}
|
||||
|
||||
/**
|
||||
* Is the OAuth email verified?
|
||||
* Check if the OAuth email is verified
|
||||
*
|
||||
* @param $accessToken
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function isEmailVerififed(): bool
|
||||
public function isEmailVerififed(string $accessToken): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
|
|
@ -138,11 +138,13 @@ class Microsoft extends OAuth2
|
|||
}
|
||||
|
||||
/**
|
||||
* Is the OAuth email verified?
|
||||
* Check if the OAuth email is verified
|
||||
*
|
||||
* @param $accessToken
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function isEmailVerififed(): bool
|
||||
public function isEmailVerififed(string $accessToken): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
|
|
@ -131,11 +131,13 @@ class Mock extends OAuth2
|
|||
}
|
||||
|
||||
/**
|
||||
* Is the OAuth email verified?
|
||||
* Check if the OAuth email is verified
|
||||
*
|
||||
* @param $accessToken
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function isEmailVerififed(): bool
|
||||
public function isEmailVerififed(string $accessToken): bool
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
|
|
@ -135,11 +135,13 @@ class Notion extends OAuth2
|
|||
}
|
||||
|
||||
/**
|
||||
* Is the OAuth email verified?
|
||||
* Check if the OAuth email is verified
|
||||
*
|
||||
* @param $accessToken
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function isEmailVerififed(): bool
|
||||
public function isEmailVerififed(string $accessToken): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
|
|
@ -155,11 +155,13 @@ class Paypal extends OAuth2
|
|||
}
|
||||
|
||||
/**
|
||||
* Is the OAuth email verified?
|
||||
* Check if the OAuth email is verified
|
||||
*
|
||||
* @param $accessToken
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function isEmailVerififed(): bool
|
||||
public function isEmailVerififed(string $accessToken): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
|
|
@ -149,11 +149,13 @@ class Salesforce extends OAuth2
|
|||
}
|
||||
|
||||
/**
|
||||
* Is the OAuth email verified?
|
||||
* Check if the OAuth email is verified
|
||||
*
|
||||
* @param $accessToken
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function isEmailVerififed(): bool
|
||||
public function isEmailVerififed(string $accessToken): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
|
|
@ -129,11 +129,13 @@ class Slack extends OAuth2
|
|||
}
|
||||
|
||||
/**
|
||||
* Is the OAuth email verified?
|
||||
* Check if the OAuth email is verified
|
||||
*
|
||||
* @param $accessToken
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function isEmailVerififed(): bool
|
||||
public function isEmailVerififed(string $accessToken): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
|
|
@ -142,11 +142,13 @@ class Spotify extends OAuth2
|
|||
}
|
||||
|
||||
/**
|
||||
* Is the OAuth email verified?
|
||||
* Check if the OAuth email is verified
|
||||
*
|
||||
* @param $accessToken
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function isEmailVerififed(): bool
|
||||
public function isEmailVerififed(string $accessToken): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
|
|
@ -142,11 +142,13 @@ class Stripe extends OAuth2
|
|||
}
|
||||
|
||||
/**
|
||||
* Is the OAuth email verified?
|
||||
* Check if the OAuth email is verified
|
||||
*
|
||||
* @param $accessToken
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function isEmailVerififed(): bool
|
||||
public function isEmailVerififed(string $accessToken): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
|
|
@ -142,11 +142,13 @@ class Tradeshift extends OAuth2
|
|||
}
|
||||
|
||||
/**
|
||||
* Is the OAuth email verified?
|
||||
* Check if the OAuth email is verified
|
||||
*
|
||||
* @param $accessToken
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function isEmailVerififed(): bool
|
||||
public function isEmailVerififed(string $accessToken): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
|
|
@ -141,11 +141,13 @@ class Twitch extends OAuth2
|
|||
}
|
||||
|
||||
/**
|
||||
* Is the OAuth email verified?
|
||||
* Check if the OAuth email is verified
|
||||
*
|
||||
* @param $accessToken
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function isEmailVerififed(): bool
|
||||
public function isEmailVerififed(string $accessToken): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
|
|
@ -151,11 +151,13 @@ class Vk extends OAuth2
|
|||
}
|
||||
|
||||
/**
|
||||
* Is the OAuth email verified?
|
||||
* Check if the OAuth email is verified
|
||||
*
|
||||
* @param $accessToken
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function isEmailVerififed(): bool
|
||||
public function isEmailVerififed(string $accessToken): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
|
|
@ -132,11 +132,13 @@ class WordPress extends OAuth2
|
|||
}
|
||||
|
||||
/**
|
||||
* Is the OAuth email verified?
|
||||
* Check if the OAuth email is verified
|
||||
*
|
||||
* @param $accessToken
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function isEmailVerififed(): bool
|
||||
public function isEmailVerififed(string $accessToken): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
|
|
@ -162,11 +162,13 @@ class Yahoo extends OAuth2
|
|||
}
|
||||
|
||||
/**
|
||||
* Is the OAuth email verified?
|
||||
* Check if the OAuth email is verified
|
||||
*
|
||||
* @param $accessToken
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function isEmailVerififed(): bool
|
||||
public function isEmailVerififed(string $accessToken): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
|
|
@ -131,11 +131,13 @@ class Yammer extends OAuth2
|
|||
}
|
||||
|
||||
/**
|
||||
* Is the OAuth email verified?
|
||||
* Check if the OAuth email is verified
|
||||
*
|
||||
* @param $accessToken
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function isEmailVerififed(): bool
|
||||
public function isEmailVerififed(string $accessToken): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
|
|
@ -145,11 +145,13 @@ class Yandex extends OAuth2
|
|||
}
|
||||
|
||||
/**
|
||||
* Is the OAuth email verified?
|
||||
* Check if the OAuth email is verified
|
||||
*
|
||||
* @param $accessToken
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function isEmailVerififed(): bool
|
||||
public function isEmailVerififed(string $accessToken): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
|
|
@ -127,11 +127,13 @@ class Zoom extends OAuth2
|
|||
}
|
||||
|
||||
/**
|
||||
* Is the OAuth email verified?
|
||||
* Check if the OAuth email is verified
|
||||
*
|
||||
* @param $accessToken
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function isEmailVerififed(): bool
|
||||
public function isEmailVerififed(string $accessToken): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue