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:
Any idea how i could achieve this?
Any idea how i could achieve this?
create: authedProcedure("user.create").input(createUserSchema).mutation(async ({ input }) => {
return createUserHandler({ input })
}),