authErrorFormatter
authErrorFormatter<
TShape>(opts):AuthErrorShape<TShape>
An error formatter for initTRPC.create({ errorFormatter }) (or
trpc.errorFormatter in nestjs-trpc). From an app formatter of your own,
call it first and add to what it returns.
Type Parameters
Section titled “Type Parameters”TShape
Section titled “TShape”TShape extends ShapeLike
Parameters
Section titled “Parameters”TRPCError
TShape
Returns
Section titled “Returns”AuthErrorShape<TShape>