Skip to content

Commit eddf940

Browse files
committed
fix: add missing token_uri, client_id, client_secret to OAuth 2.1 refresh store_session
The store_session call in the OAuth 2.1 credential refresh path (get_credentials) omits token_uri, client_id, client_secret, and issuer. These are stored as None, causing subsequent refresh attempts to fail and forcing full re-authentication. The correct pattern already exists in three other store_session calls in the same file (lines 151, 522, 750) — this aligns the refresh path to match.
1 parent 49b8238 commit eddf940

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

auth/google_auth.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -612,9 +612,13 @@ def get_credentials(
612612
user_email=user_email,
613613
access_token=credentials.token,
614614
refresh_token=credentials.refresh_token,
615+
token_uri=credentials.token_uri,
616+
client_id=credentials.client_id,
617+
client_secret=credentials.client_secret,
615618
scopes=credentials.scopes,
616619
expiry=credentials.expiry,
617620
mcp_session_id=session_id,
621+
issuer="https://accounts.google.com",
618622
)
619623
# Persist to file so rotated refresh tokens survive restarts
620624
if not is_stateless_mode():

0 commit comments

Comments
 (0)