4 Replies
I want the
authRequired
type to automatically infer the correct type for the context
in my protectedProcedure, I have the isAuthed middleware set up to throw an error if the meta is set to true, but that type doesnt work in my procedure and the usermodel type is still nullable
how can I fix that?Just don't use meta here
how do I set this up then?
Use protected procedures for protected ones and public for non protected ones