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 959d4e3 + c3b2537 commit 32c6b9aCopy full SHA for 32c6b9a
src/mcp/client/auth.py
@@ -131,7 +131,7 @@ def is_token_valid(self) -> bool:
131
and self.current_tokens.access_token
132
and (not self.token_expiry_time or time.time() <= self.token_expiry_time)
133
)
134
-
+
135
def can_refresh_token(self) -> bool:
136
"""Check if token can be refreshed."""
137
return bool(self.current_tokens and self.current_tokens.refresh_token and self.client_info)
@@ -546,6 +546,6 @@ async def async_auth_flow(self, request: httpx.Request) -> AsyncGenerator[httpx.
546
logger.exception("OAuth flow error")
547
raise
548
549
- # Retry with new tokens
550
- self._add_auth_header(request)
551
- yield request
+ # Retry with new tokens
+ self._add_auth_header(request)
+ yield request
0 commit comments