From 88ebf901a3a8a4a15842d708581a630bd2c1e984 Mon Sep 17 00:00:00 2001 From: Roman Tretiak Date: Wed, 12 Jun 2024 17:29:28 +0200 Subject: [PATCH] Fix updating of expiration info Fix problem with refreshing of token on each request --- ydb/aio/credentials.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ydb/aio/credentials.py b/ydb/aio/credentials.py index 48db925e..18e1b7e0 100644 --- a/ydb/aio/credentials.py +++ b/ydb/aio/credentials.py @@ -71,7 +71,7 @@ async def _refresh(self): try: auth_metadata = await self._make_token_request() await self._cached_token.update(auth_metadata["access_token"]) - self.update_expiration_info(auth_metadata) + self._update_expiration_info(auth_metadata) self.logger.info( "Token refresh successful. current_time %s, refresh_in %s", current_time,