Spaces:
Sleeping
Sleeping
Update test.py
Browse files
test.py
CHANGED
@@ -26,7 +26,7 @@ async def login_google():
|
|
26 |
#Below is the URL to prompt the user to login to his specified gmail account and also give a readonly access to his gmail
|
27 |
oauth_url = f"https://accounts.google.com/o/oauth2/auth?response_type=code&client_id={GOOGLE_CLIENT_ID}&redirect_uri={GOOGLE_REDIRECT_URI}&scope=openid%20profile%20email%20https://www.googleapis.com/auth/gmail.readonly&access_type=offline"
|
28 |
|
29 |
-
|
30 |
return {
|
31 |
"url": f"https://accounts.google.com/o/oauth2/auth?response_type=code&client_id={GOOGLE_CLIENT_ID}&redirect_uri={GOOGLE_REDIRECT_URI}&scope=openid%20profile%20email&access_type=offline"
|
32 |
}
|
|
|
26 |
#Below is the URL to prompt the user to login to his specified gmail account and also give a readonly access to his gmail
|
27 |
oauth_url = f"https://accounts.google.com/o/oauth2/auth?response_type=code&client_id={GOOGLE_CLIENT_ID}&redirect_uri={GOOGLE_REDIRECT_URI}&scope=openid%20profile%20email%20https://www.googleapis.com/auth/gmail.readonly&access_type=offline"
|
28 |
|
29 |
+
webbrowser.open(oauth_url)
|
30 |
return {
|
31 |
"url": f"https://accounts.google.com/o/oauth2/auth?response_type=code&client_id={GOOGLE_CLIENT_ID}&redirect_uri={GOOGLE_REDIRECT_URI}&scope=openid%20profile%20email&access_type=offline"
|
32 |
}
|