Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
NextJS REST API storing authed User per request - Theo's Typesafe Cult
TTC
Theo's Typesafe Cult
•
2y ago
•
3 replies
Balduin
NextJS REST API storing authed User per request
Hello i am looking for a good way to store the current User per request on the backend with NextJS endpoints
.
I saw in
terminals
github the usage of
node:asyncs_hooks
node:asyncs_hooks
wrapped by an
Actor
. I like that concept
, but i think i dont need to have an
AsyncLocalStorage
AsyncLocalStorage
.
Are the best practices to do that
? could i just use a Map
/ an Object instead of the
AsyncLocalStorage
AsyncLocalStorage
?
GitHub
terminal/packages/core/src/context.ts at dev · terminaldotshop/term...
Contribute to terminaldotshop
/terminal development by creating an account on GitHub
.
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
How to handle Nextjs with external REST API
TTC
Theo's Typesafe Cult / questions
2y ago
nextjs api route request.query is undefined
TTC
Theo's Typesafe Cult / questions
2y ago
Nextjs request's order in async api
TTC
Theo's Typesafe Cult / questions
3y ago