π The fast, Pythonic way to build MCP servers and clients.
Use consistent refresh_ttl for JTI mapping store (#2799)
Jeremiah Lowin151b0ae46ff4
diff --git a/src/fastmcp/server/auth/oauth_proxy.py b/src/fastmcp/server/auth/oauth_proxy.pyindex 4dfc52e74..c86f7d6d9 100644--- a/src/fastmcp/server/auth/oauth_proxy.py+++ b/src/fastmcp/server/auth/oauth_proxy.py@@ -1576,7 +1576,7 @@ class OAuthProxy(OAuthProvider):)# Store new refresh token JTI mapping with aligned expiry- refresh_ttl = new_refresh_expires_in or 60 * 60 * 24 * 30+ # (reuse refresh_ttl calculated above for upstream token store)await self._jti_mapping_store.put(key=new_refresh_jti,value=JTIMapping(