Is there a way to pass parameters to procedure on call?

I would like to pass the required permission to the procedure like in this example:
create: authedProcedure("user.create").input(createUserSchema).mutation(async ({ input }) => {
return createUserHandler({ input })
}),
create: authedProcedure("user.create").input(createUserSchema).mutation(async ({ input }) => {
return createUserHandler({ input })
}),
Any idea how i could achieve this?
AK
Alex / KATT 🐱34d ago
GitHub
Procedure with parametes ? · trpc trpc · Discussion #5196
Is there something in trpc, that we can do to get role based procedures, something like this ping: publicProcedure.meta({ description: "Returns a Pong" }).query(() => { return "Po...