Spaces:
Sleeping
Sleeping
Update test.py
Browse files
test.py
CHANGED
@@ -37,8 +37,7 @@ async def login_google():
|
|
37 |
# 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&access_type=offline"
|
38 |
|
39 |
#Below is the URL to prompt the user to login to his specified gmail account and also give a readonly access to his gmail
|
40 |
-
|
41 |
-
oauth_url_hr = 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&state=receipts"
|
42 |
return {
|
43 |
"url_hr": oauth_url_hr
|
44 |
}
|
|
|
37 |
# 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&access_type=offline"
|
38 |
|
39 |
#Below is the URL to prompt the user to login to his specified gmail account and also give a readonly access to his gmail
|
40 |
+
oauth_url_hr = 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"
|
|
|
41 |
return {
|
42 |
"url_hr": oauth_url_hr
|
43 |
}
|