Spaces:
Sleeping
Sleeping
Update auth.py
Browse files
auth.py
CHANGED
|
@@ -28,7 +28,7 @@ def login():
|
|
| 28 |
scopes=SCOPES
|
| 29 |
)
|
| 30 |
flow.redirect_uri = REDIRECT_URI
|
| 31 |
-
auth_url, _ = flow.authorization_url(prompt='consent', include_granted_scopes='true')
|
| 32 |
return RedirectResponse(auth_url)
|
| 33 |
|
| 34 |
@router.get("/auth/callback")
|
|
|
|
| 28 |
scopes=SCOPES
|
| 29 |
)
|
| 30 |
flow.redirect_uri = REDIRECT_URI
|
| 31 |
+
auth_url, _ = flow.authorization_url(prompt='consent', include_granted_scopes='true', access_type='offline')
|
| 32 |
return RedirectResponse(auth_url)
|
| 33 |
|
| 34 |
@router.get("/auth/callback")
|