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?
optionaluserId?:string