Skip to content

Commit 2380cab

Browse files
authored
a fix for access_type (#88)
seems like the default `access_type` is `offline` so I added this line to make sure that the default behavior does not get the refresh token
1 parent bf8b9d5 commit 2380cab

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pydrive2/auth.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -542,6 +542,7 @@ def GetFlow(self):
542542
"redirect_uri": self.client_config["redirect_uri"],
543543
"auth_uri": self.client_config["auth_uri"],
544544
"token_uri": self.client_config["token_uri"],
545+
"access_type": "online",
545546
}
546547
if self.client_config["revoke_uri"] is not None:
547548
constructor_kwargs["revoke_uri"] = self.client_config["revoke_uri"]

0 commit comments

Comments
 (0)