Gregniuki commited on
Commit
6b4e76c
1 Parent(s): 063b9b9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -47,10 +47,11 @@ class UserCreate(BaseModel):
47
  # OAuth Configuration
48
  oauth.register(
49
  name='google',
50
- client_id=GOOGLE_CLIENT_ID,
51
- client_secret=GOOGLE_CLIENT_SECRET,
52
  access_token_url='https://accounts.google.com/o/oauth2/token',
53
  authorize_url='https://accounts.google.com/o/oauth2/auth',
 
54
  api_base_url='https://www.googleapis.com/oauth2/v1/',
55
  client_kwargs={'scope': 'openid email profile'}
56
  )
 
47
  # OAuth Configuration
48
  oauth.register(
49
  name='google',
50
+ client_id=os.environ['GOOGLE_CLIENT_ID'],
51
+ client_secret=os.environ['GOOGLE_CLIENT_SECRET'],
52
  access_token_url='https://accounts.google.com/o/oauth2/token',
53
  authorize_url='https://accounts.google.com/o/oauth2/auth',
54
+ authorize_params=None,
55
  api_base_url='https://www.googleapis.com/oauth2/v1/',
56
  client_kwargs={'scope': 'openid email profile'}
57
  )