notionhive-ai commited on
Commit
30a502f
·
verified ·
1 Parent(s): a01f76e

Update auth.py

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