Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Clerk and tRPC "protectedProcedures" on the server. - Theo's Typesafe Cult
TTC
Theo's Typesafe Cult
•
2y ago
•
6 replies
RobCipolla
Clerk and tRPC "protectedProcedures" on the server.
Hey everyone
!
I am trying to integrate Clerk into tRPC so I can create protectedProcedures
(using create
-t3
-app
)
. Essentially I need the
"auth
" object returned by
getAuth
getAuth
to be part of the ctx
.
Now I got this working nicely for client components
.
However I am a bit stuck on how I would implement this for server components
.
.
. I cannot see a way to pass the
NextRequest
NextRequest
object into createContext from the
createCaller
createCaller
function
.
Any ideas
?
Theo's Typesafe Cult
Join
26,564
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
Vitest, Clerk and TRPC integration
TTC
Theo's Typesafe Cult / questions
3y ago
Clerk middleware + trpc
TTC
Theo's Typesafe Cult / questions
3y ago
Clerk API Routes protection on the server
TTC
Theo's Typesafe Cult / questions
3y ago
Clerk Context in TRPC
TTC
Theo's Typesafe Cult / questions
2y ago