Skip to content

AUTH_ERROR_CODES

const AUTH_ERROR_CODES: object

Defined in: packages/auth/src/errors/codes.ts:13

Stable, semantic error codes returned by @eventista/sdk-auth.

These codes form part of the public API contract — consumers branch on result.code (the SDK semantic code), never on result.err (the human message). Adding a code is a minor bump; removing or renaming a code is a major bump.

Backend numeric codes (e.g. 101009) are surfaced separately on result.errorCode for support tickets, but the semantic code is the branching contract: backend code reshuffling never breaks consumers.

readonly AUTH_ACCESS_TOKEN_MISSING: "AUTH_ACCESS_TOKEN_MISSING" = "AUTH_ACCESS_TOKEN_MISSING"

readonly AUTH_ACCOUNT_NOT_FOUND: "AUTH_ACCOUNT_NOT_FOUND" = "AUTH_ACCOUNT_NOT_FOUND"

readonly AUTH_EMAIL_ALREADY_EXISTS: "AUTH_EMAIL_ALREADY_EXISTS" = "AUTH_EMAIL_ALREADY_EXISTS"

readonly AUTH_EMAIL_NOT_REGISTERED: "AUTH_EMAIL_NOT_REGISTERED" = "AUTH_EMAIL_NOT_REGISTERED"

readonly AUTH_EMAIL_UNVERIFIED: "AUTH_EMAIL_UNVERIFIED" = "AUTH_EMAIL_UNVERIFIED"

readonly AUTH_INVALID_CREDENTIALS: "AUTH_INVALID_CREDENTIALS" = "AUTH_INVALID_CREDENTIALS"

readonly AUTH_MISSING_REQUIRED_VALUE: "AUTH_MISSING_REQUIRED_VALUE" = "AUTH_MISSING_REQUIRED_VALUE"

readonly AUTH_NETWORK_ERROR: "AUTH_NETWORK_ERROR" = "AUTH_NETWORK_ERROR"

readonly AUTH_PASSWORD_RESET_LINK_EXPIRED: "AUTH_PASSWORD_RESET_LINK_EXPIRED" = "AUTH_PASSWORD_RESET_LINK_EXPIRED"

readonly AUTH_REFRESH_FAILED: "AUTH_REFRESH_FAILED" = "AUTH_REFRESH_FAILED"

readonly AUTH_REFRESH_TOKEN_MISSING: "AUTH_REFRESH_TOKEN_MISSING" = "AUTH_REFRESH_TOKEN_MISSING"

readonly AUTH_UNAUTHORIZED: "AUTH_UNAUTHORIZED" = "AUTH_UNAUTHORIZED"

readonly AUTH_UNKNOWN_ERROR: "AUTH_UNKNOWN_ERROR" = "AUTH_UNKNOWN_ERROR"