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.
1 parent a3a4b8d commit c9cae41Copy full SHA for c9cae41
1 file changed
src/mcp/client/auth/oauth2.py
@@ -467,6 +467,10 @@ async def _initialize(self) -> None: # pragma: no cover
467
"""Load stored tokens and client info."""
468
self.context.current_tokens = await self.context.storage.get_tokens()
469
self.context.client_info = await self.context.storage.get_client_info()
470
+
471
+ if self.context.current_tokens and self.context.current_tokens.expires_in:
472
+ self.context.update_token_expiry(self.context.current_tokens)
473
474
self._initialized = True
475
476
def _add_auth_header(self, request: httpx.Request) -> None:
0 commit comments