From 984c6f0e30341c51560bc8b06a2a83051281a314 Mon Sep 17 00:00:00 2001 From: Christy Jacob Date: Sat, 7 May 2022 15:03:00 +0400 Subject: [PATCH] feat: added check for Box OAuth --- src/Appwrite/Auth/OAuth2/Box.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/Appwrite/Auth/OAuth2/Box.php b/src/Appwrite/Auth/OAuth2/Box.php index f58ce3692f..6e2f893496 100644 --- a/src/Appwrite/Auth/OAuth2/Box.php +++ b/src/Appwrite/Auth/OAuth2/Box.php @@ -150,15 +150,19 @@ class Box extends OAuth2 /** * Check if the OAuth email is verified * + * If present, the email is verified. This was verfied through a manual Box sign up process + * * @param $accessToken * * @return bool */ public function isEmailVerified(string $accessToken): bool { - return false; - } + $email = $this->getUserEmail($accessToken); + return !empty($email); + } + /** * @param string $accessToken *