Skip to content

js-bao-wss-client


js-bao-wss-client / AuthCode

Type Alias: AuthCode ​

AuthCode = typeof AUTH_CODES[keyof typeof AUTH_CODES]

Union of the known auth error codes in AUTH_CODES. Found on AuthError.code, letting apps branch on specific sign-in outcomes (e.g. "ADDED_TO_WAITLIST", "INVITATION_REQUIRED") without parsing message text.

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