From cd31cf22d5efbe7276363397d3992f83bb4fc8e8 Mon Sep 17 00:00:00 2001 From: Christy Jacob Date: Thu, 5 May 2022 14:59:32 +0400 Subject: [PATCH] feat: added check for Notion OAuth --- src/Appwrite/Auth/OAuth2/Notion.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Appwrite/Auth/OAuth2/Notion.php b/src/Appwrite/Auth/OAuth2/Notion.php index 3687be0b82..eee4ed6403 100644 --- a/src/Appwrite/Auth/OAuth2/Notion.php +++ b/src/Appwrite/Auth/OAuth2/Notion.php @@ -137,13 +137,17 @@ class Notion extends OAuth2 /** * Check if the OAuth email is verified * + * If present, the email is verified. This was verfied through a manual Notion sign up process + * * @param $accessToken * * @return bool */ public function isEmailVerified(string $accessToken): bool { - return false; + $email = $this->getUserEmail($accessToken); + + return !empty($email); } /**