Skip to content

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.

TShape extends ShapeLike

TRPCError

TShape

AuthErrorShape<TShape>