Add token requirement to public TRPC endpoint to add to DB (create-t3-app)
I've created a public TRPC endpoint on the exampleRouter like so:
The above works if I POST to
I want to be able to call this from Github Actions (this part seems pretty trivial), but I don't want just anyone to be able to call the route in order to trigger it, so I thought I should add a token:
But I get the following error when trying to POST to the endpoint with the following body:
(Post continued in comment below)
The above works if I POST to
/api/trpc/example.create.I want to be able to call this from Github Actions (this part seems pretty trivial), but I don't want just anyone to be able to call the route in order to trigger it, so I thought I should add a token:
But I get the following error when trying to POST to the endpoint with the following body:
(Post continued in comment below)
