Omkar008 commited on
Commit
23adc82
1 Parent(s): 129ec40

Update test.py

Browse files
Files changed (1) hide show
  1. test.py +1 -2
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
- 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"
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
  }