From d343601d0e979d3eae175466109e2f2438a83944 Mon Sep 17 00:00:00 2001 From: abderrahmane-83 <68152107+abderrahmane-83@users.noreply.github.com> Date: Sat, 2 Dec 2023 11:23:44 +0100 Subject: [PATCH] Update __init__.py Add full name and Profil image url to the returned gmail authentified user --- firebase/auth/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/firebase/auth/__init__.py b/firebase/auth/__init__.py index 97ff87e..5db72d2 100644 --- a/firebase/auth/__init__.py +++ b/firebase/auth/__init__.py @@ -114,6 +114,7 @@ def create_authentication_uri(self, provider_id): self.__nonce = "".join(random.choice("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789") for _ in range(20)) if provider_id == 'google.com': + data['oauthScope'] = 'profile' data['authFlowType'] = 'CODE_FLOW' data['customParameter'] = {"access_type": 'offline', "prompt": 'select_account', "include_granted_scopes": 'true', "nonce": self.__nonce}