AuthContextOf
AuthContextOf<
TAuth> =TAuthextendsTrpcAuth<infer U, infer A> ?AuthContext<U,A> :never
The context type for a createAuth(...) result: initTRPC.context<AuthContextOf<typeof auth>>().
Spread in your own fields with an intersection.
Type Parameters
Section titled “Type Parameters”TAuth