From 151b0ae46ff40083854326b50c5ff5886316e9d7 Mon Sep 17 00:00:00 2001 From: Jeremiah Lowin <153965+jlowin@users.noreply.github.com> Date: Tue, 6 Jan 2026 17:46:39 -0500 Subject: [PATCH] Use consistent refresh_ttl for JTI mapping store (#2799) --- src/fastmcp/server/auth/oauth_proxy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fastmcp/server/auth/oauth_proxy.py b/src/fastmcp/server/auth/oauth_proxy.py index 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(