auth/account_actions.ts view source
AccountActionOptions Options for create_account_actions.
max_tokens
Max API tokens per account. When set, account_token_create enforces the
cap via query_api_token_enforce_limit inside the same transaction —
oldest tokens are evicted once the cap is exceeded. Default
DEFAULT_MAX_TOKENS; pass null to disable the cap.
number | nullconnection_closer
Live-connection closer — when set, account_session_revoke /
_session_revoke_all / account_token_revoke handlers eagerly close
affected WebSocket sockets BEFORE emitting the corresponding audit
event. Closes the audit-failure-leaks-WS surface: the listener-based
close (transports_ws_auth_guard) only fires after the audit INSERT
succeeds, so a DB error would leave live sockets stale. BackendWebsocketTransport
satisfies this interface structurally; consumers pass their transport
instance directly. When absent, only the listener-based close runs.
Mirrors zzz_server's handler-side close_sockets_for_* calls.
ConnectionCloser | null