headers: heads vs. CreateNextContextOptions
Howdy, I've been following this nifty video on YouTube: https://youtu.be/YkOSUVzOAA4?si=_D4dZp4vBHzIJFXK
It may be a bit dated, as the code in the video isn't lining up with the code in the repo link.
Right around 1:23, Theo goes into how to use Clerk to effectively prevent access to tRPC procedures, using a private procedure that invokes some enforceAuth middleware.
My question is that opts here wouldn't work:
The issue is that changing opts from
In the video
Any help would be most appreciated.
It may be a bit dated, as the code in the video isn't lining up with the code in the repo link.
Right around 1:23, Theo goes into how to use Clerk to effectively prevent access to tRPC procedures, using a private procedure that invokes some enforceAuth middleware.
My question is that opts here wouldn't work:
The issue is that changing opts from
opts:{headers: Headers} to {opts: CreateNextContextOptions} (as what's shown in the video) breaks ~/trpc/server:In the video
~trpc/server.is is never touched, so I'm befuddled. Any help would be most appreciated.
YouTubeTheo - t3․gg
I've never worked this hard on a video before. I really hope y'all can benefit from this 
GITHUB REPO https://github.com/t3dotgg/chirp
DEPLOYED APP https://xn--uo8h.t3.gg/
GET A JACKET IF YOU'RE COOL LIKE THAT https://shop.t3.gg/
ALL MY VIDEOS ARE POSTED EARLY ON PATREON https://www.patreon.com/t3dotgg
Everything else (Twitch, Twitter, Discor...
GITHUB REPO https://github.com/t3dotgg/chirp
DEPLOYED APP https://xn--uo8h.t3.gg/
GET A JACKET IF YOU'RE COOL LIKE THAT https://shop.t3.gg/
ALL MY VIDEOS ARE POSTED EARLY ON PATREON https://www.patreon.com/t3dotgg
Everything else (Twitch, Twitter, Discor...

