You do need this to get refresh_token

This commit is contained in:
shamoon 2024-10-07 11:38:55 -07:00
parent 1eb185e7c7
commit 9b8d9b2270

View File

@ -64,7 +64,7 @@ class PaperlessMailOAuth2Manager:
self.gmail_client.get_authorization_url(
redirect_uri=self.oauth_callback_url,
scope=["https://mail.google.com/"],
extras_params={"access_type": "offline"},
extras_params={"prompt": "consent", "access_type": "offline"},
),
)