Skip to content

js-bao-wss-client


js-bao-wss-client / AuthStateEvent

Interface: AuthStateEvent ​

Payload of the auth:state event (client.on("auth:state", ...)). Fired whenever the authentication state changes — sign-in, sign-out, or a mode transition. userId is present when authenticated is true.

Properties ​

authenticated ​

authenticated: boolean


mode ​

mode: "none" | "auto" | "online" | "offline"


userId? ​

optional userId?: string

Documentation validated against js-bao-wss-client 3.4.0 · js-bao 0.11.0 · primitive-admin 1.0.62 · primitive-app 3.1.0 — 2026-09-30