1
0
Fork 0
mirror of synced 2024-06-26 18:20:43 +12:00

feat: add method to check for email verification

This commit is contained in:
Christy Jacob 2022-04-27 22:14:09 +03:00
parent 957a99ce38
commit 16c45fad29
29 changed files with 116 additions and 58 deletions

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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