Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -842,6 +842,8 @@ authorization_base_url = 'https://accounts.google.com/o/oauth2/auth'
|
|
842 |
token_url = 'https://accounts.google.com/o/oauth2/token'
|
843 |
scope = ['https://www.googleapis.com/auth/userinfo.profile', 'https://www.googleapis.com/auth/userinfo.email']
|
844 |
|
|
|
|
|
845 |
# Function to initiate the OAuth flow
|
846 |
def login():
|
847 |
google = OAuth2Session(GOOGLE_CLIENT_ID, scope=scope, redirect_uri=REDIRECT_URI)
|
|
|
842 |
token_url = 'https://accounts.google.com/o/oauth2/token'
|
843 |
scope = ['https://www.googleapis.com/auth/userinfo.profile', 'https://www.googleapis.com/auth/userinfo.email']
|
844 |
|
845 |
+
GOOGLE_CLIENT_ID=os.environ(['GOOGLE_CLIENT_ID'])
|
846 |
+
|
847 |
# Function to initiate the OAuth flow
|
848 |
def login():
|
849 |
google = OAuth2Session(GOOGLE_CLIENT_ID, scope=scope, redirect_uri=REDIRECT_URI)
|