1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2024-11-22 18:53:21 +01:00

[bluesky] update refresh token after using it (#4438)

This commit is contained in:
Mike Fährmann 2024-02-08 22:33:34 +01:00
parent 9c10be54fb
commit 5c2a2321a2
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

View File

@ -289,8 +289,7 @@ class BlueskyAPI():
raise exception.AuthenticationError('"{}: {}"'.format(
data.get("error"), data.get("message")))
if not refresh_token:
_refresh_token_cache.update(self.username, data["refreshJwt"])
_refresh_token_cache.update(self.username, data["refreshJwt"])
return "Bearer " + data["accessJwt"]
def _call(self, endpoint, params):