Skip to content

mapBackendErrorCode

mapBackendErrorCode(beCode): AuthErrorCode

Defined in: packages/auth/src/errors/mapBackendErrorCode.ts:10

Translate a backend error code (numeric like 101009 or string like "expired") into a stable AuthErrorCode.

Unknown codes fall back to AUTH_UNKNOWN_ERROR so the SDK never leaks raw backend codes into public error surfaces.

string | number | undefined

AuthErrorCode