fix: set auth_state to VALID (not CONNECTED) after auto-login reconnect

Frontend checks authState === 'VALID' to clear the session-expired
banner. Using 'CONNECTED' left the banner stuck even after a successful
token refresh.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Thigazhezhilan J 2026-06-02 22:32:47 +05:30
parent 5dce19c7d8
commit 6215910c9c

View File

@ -306,7 +306,7 @@ def _reconnect_broker_after_auto_login(user_id: str) -> None:
"""
UPDATE user_broker
SET connected = TRUE,
auth_state = 'CONNECTED'
auth_state = 'VALID'
WHERE user_id = %s
""",
(user_id,),