Skip to content

Commit

Permalink
get_credentials instead of init for token refresh
Browse files Browse the repository at this point in the history
  • Loading branch information
krzysztofkarolak committed May 23, 2024
1 parent 100c5c8 commit 2727688
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion image/photos.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
with open(CLIENT_SECRET_FILE, "w") as file:
file.write(os.environ.get('IC_ALBUM_SECRET'))
album_id = os.environ.get('IC_ALBUM_ID')
service = authorize.init(CLIENT_SECRET_FILE)
service = authorize.get_credentials(CLIENT_SECRET_FILE)
album_manager = Album(service)
media_manager = Media(service)

Expand Down

0 comments on commit 2727688

Please sign in to comment.