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.
Type Parameters
Section titled “Type Parameters”T
Parameters
Section titled “Parameters”string
Human-readable message.
Stable AuthErrorCode. Consumers branch on this.
errorCode?
Section titled “errorCode?”string | number
Raw upstream error code, when available.
T
Optional payload (rare; typically left undefined on errors).
Returns
Section titled “Returns”AuthResponse<T>