Variable: TOKEN\_INVALID
Variable: TOKEN_INVALID
constTOKEN_INVALID:"TOKEN_INVALID"='TOKEN_INVALID'
Defined in: errors/codes.ts:17
Server error codes. The auth-server emits these as the error.code field
in its error envelope (see ./envelope.ts); consumers branch on them for
fine-grained UX (e.g. “your email is already in use” vs “your account is
locked”). The set here is the conservative subset the SDK + NestJS adapter
agree on — extend as new server codes get surfaced to clients.
Stored as string CONSTANTS rather than a TS enum so they survive
verbatimModuleSyntax / erased-only-imports without runtime quirks, and
so they can be passed across worker / cross-tab boundaries verbatim.
Source: auth-server/pkg/shared/errors/ + the wire envelopes per route.