Secrets and tokens
Session cookies are
HttpOnly, use SameSite=Lax, and become Secure in production. The session TTL is 30 days.
Runtime protection
The gateway authenticates a connection token by its hash and rejects revoked or archived bots. Replacing a socket closes the previous one. The SDK does not reconnect after terminal close codes such as4401, 4403, 4404, or 4429.
Rotation response
If a connection token is compromised, revoke the connection or rotate it from the bot management flow. A revoked socket is closed immediately with4403.