toTRPCError
toTRPCError(
failure):AuthTRPCError
The tRPC error for a flow’s refusal: throw it from a procedure when a flow
returns { ok: false }. Total: an unknown code becomes internal.
Parameters
Section titled “Parameters”failure
Section titled “failure”Pick<AuthFailure, "code" | "retryAfterSeconds">