diff --git a/src/Appwrite/Auth/OAuth2/Discord.php b/src/Appwrite/Auth/OAuth2/Discord.php index 033150d045..631f4a3f7e 100644 --- a/src/Appwrite/Auth/OAuth2/Discord.php +++ b/src/Appwrite/Auth/OAuth2/Discord.php @@ -144,12 +144,20 @@ class Discord extends OAuth2 /** * Check if the OAuth email is verified * + * @link https://discord.com/developers/docs/resources/user + * * @param $accessToken * * @return bool */ public function isEmailVerified(string $accessToken): bool { + $user = $this->getUser($accessToken); + + if (isset($user['verified']) && $user['verified'] === true) { + return true; + } + return false; } diff --git a/src/Appwrite/Auth/OAuth2/Dropbox.php b/src/Appwrite/Auth/OAuth2/Dropbox.php index c29b3ccb75..04a07f486a 100644 --- a/src/Appwrite/Auth/OAuth2/Dropbox.php +++ b/src/Appwrite/Auth/OAuth2/Dropbox.php @@ -134,6 +134,8 @@ class Dropbox extends OAuth2 /** * Check if the OAuth email is verified * + * @link https://www.dropbox.com/developers/documentation/http/documentation#users-get_current_account + * * @param $accessToken * * @return bool