Skip to content

Commit

Permalink
Merge pull request #51 from smartondev/refreshtoken
Browse files Browse the repository at this point in the history
use offline access tokens
  • Loading branch information
kamarton authored Jan 19, 2023
2 parents cc35bee + dceadc6 commit 49def65
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## DEV


- Enh: use offline access tokens

## 0.7.2

Expand Down
2 changes: 1 addition & 1 deletion gwbackupy/providers/gapi_service_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ def __get_credentials_by_oauth(self, email: str):
self.credentials_file_path,
self.scopes,
)
credentials = flow.run_local_server(port=0)
credentials = flow.run_local_server(port=0, access_type="offline")

token_link_new = self.storage.new_link(
GapiServiceProvider.object_id_token, "json"
Expand Down

0 comments on commit 49def65

Please sign in to comment.