The server closes idle unauthenticated connections after AuthTimeoutMs (10 s). A user authenticating in the browser takes longer than that, so the socket the client held while the browser was open is already dead when token_received fires. Sending auth.keycloak on that stale connection produces no reply and the scene never changes. Fix: login_with_keycloak() now calls Network.force_reconnect() instead of sending immediately. _on_network_connected() then sends auth.keycloak as the guaranteed-first message on the fresh connection. Also: DISCONNECTED errors in the auth.keycloak error callback no longer clear keycloak_refresh_token, preserving silent re-auth on transient drops. Generated with [Claude Code](https://claude.ai/code) via [Happy](https://happy.engineering) Co-Authored-By: Claude <noreply@anthropic.com> Co-Authored-By: Happy <yesreply@happy.engineering>
2 lines
20 B
Plaintext
2 lines
20 B
Plaintext
uid://bqnvbrk2p83g1
|