1
0
Fork 0
mirror of synced 2024-09-30 09:18:14 +13:00

feat: added check for Notion OAuth

This commit is contained in:
Christy Jacob 2022-05-05 14:59:32 +04:00
parent e052999c74
commit cd31cf22d5

View file

@ -137,13 +137,17 @@ class Notion extends OAuth2
/** /**
* Check if the OAuth email is verified * 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 * @param $accessToken
* *
* @return bool * @return bool
*/ */
public function isEmailVerified(string $accessToken): bool public function isEmailVerified(string $accessToken): bool
{ {
return false; $email = $this->getUserEmail($accessToken);
return !empty($email);
} }
/** /**