Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
@@ -19,7 +19,7 @@ async def test(request:Request):
|
|
19 |
body = await request.json()
|
20 |
token_url = "https://oauth2.googleapis.com/token"
|
21 |
data= {
|
22 |
-
"
|
23 |
"client_id": os.getenv("GOOGLE_CLIENT_ID"),
|
24 |
"client_secret": os.getenv("GOOGLE_CLIENT_SECRET"),
|
25 |
"redirect_uri": os.getenv("GOOGLE_REDIRECT_URI"),
|
|
|
19 |
body = await request.json()
|
20 |
token_url = "https://oauth2.googleapis.com/token"
|
21 |
data= {
|
22 |
+
"refresh_token":body.get('refresh_token',None),
|
23 |
"client_id": os.getenv("GOOGLE_CLIENT_ID"),
|
24 |
"client_secret": os.getenv("GOOGLE_CLIENT_SECRET"),
|
25 |
"redirect_uri": os.getenv("GOOGLE_REDIRECT_URI"),
|