mirror of
https://github.com/appwrite/appwrite
synced 2026-05-24 09:28:40 +00:00
feat: added check for Dropbox OAuth
This commit is contained in:
parent
0a13706f0f
commit
e60338065e
1 changed files with 6 additions and 0 deletions
|
|
@ -140,6 +140,12 @@ class Dropbox extends OAuth2
|
||||||
*/
|
*/
|
||||||
public function isEmailVerified(string $accessToken): bool
|
public function isEmailVerified(string $accessToken): bool
|
||||||
{
|
{
|
||||||
|
$user = $this->getUser($accessToken);
|
||||||
|
|
||||||
|
if (isset($user['email_verified']) && $user['email_verified'] === true) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue