We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a0940bb + ee8a66a commit 7c3b3e3Copy full SHA for 7c3b3e3
docker_registry_client_async/dockerregistryclientasync.py
@@ -292,7 +292,9 @@ async def _get_auth_token(
292
if json_kwargs is None:
293
json_kwargs = {}
294
payload = await client_response.json(**json_kwargs)
295
- return payload.get("token", None)
+ if "token" in payload:
296
+ return payload["token"]
297
+ return payload.get("access_token", None)
298
299
async def _get_client_session(self) -> ClientSession:
300
"""
0 commit comments