Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Use Clerk `getAuth(req)` in a Zact server action - Theo's Typesafe Cult
TTC
Theo's Typesafe Cult
•
3y ago
•
13 replies
Ed
Use Clerk `getAuth(req)` in a Zact server action
Is there a way to get the Next request object in a Zact server action
.
I require this to be able to get the current user using Clerk
's
getAuth
getAuth
function
Solution
You gotta do action
> server
> client because action
-
> client doesn
't support headers yet
Jump to solution
Theo's Typesafe Cult
Join
26,564
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
Error when using clerk getAuth from UploadThing routes
TTC
Theo's Typesafe Cult / questions
3y ago
Using Clerk's getAuth() helper causes withClerkMiddleware to be unrecognized
TTC
Theo's Typesafe Cult / questions
3y ago
Integrating Clerk: How to supply req to createTRPCContext on server-side?
TTC
Theo's Typesafe Cult / questions
3y ago
Use of Next JS Server Actions in a project
TTC
Theo's Typesafe Cult / questions
3y ago