Skip to content

genAuthErrResponse

genAuthErrResponse<T>(err, code, errorCode?, data?): AuthResponse<T>

Defined in: packages/auth/src/types/response.ts:46

Build an error-shaped AuthResponse. Mirrors genErrorResponse from @eventista/sdk-api-client but additionally carries the SDK-level code.

T

string

Human-readable message.

AuthErrorCode

Stable AuthErrorCode. Consumers branch on this.

string | number

Raw upstream error code, when available.

T

Optional payload (rare; typically left undefined on errors).

AuthResponse<T>