This commit is contained in:
Taylor Wilsdon
2026-02-10 17:00:41 -05:00
parent bc2279bc10
commit 3b75ab11fb
4 changed files with 11 additions and 7 deletions

View File

@@ -392,7 +392,7 @@ async def start_auth_flow(
store.store_oauth_state(oauth_state, session_id=session_id)
logger.info(
f"Auth flow started for {user_display_name}. State: {oauth_state[:8]}... Advise user to visit: {auth_url}"
f"Auth flow started for {user_display_name}. Advise user to visit: {auth_url}"
)
message_lines = [
@@ -616,6 +616,10 @@ def get_credentials(
expiry=credentials.expiry,
mcp_session_id=session_id,
)
# Persist to file so rotated refresh tokens survive restarts
if not is_stateless_mode():
credential_store = get_credential_store()
credential_store.store_credential(user_email, credentials)
return credentials
except Exception as e:
logger.error(