Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Get session data on first load (nextjs + elysia) - Better Auth
BA
Better Auth
•
11mo ago
•
3 replies
Kai Sian
Get session data on first load (nextjs + elysia)
Is there a way to retrieve the session data on the first load using useSession
? I already using middleware to validate the session
. For my pages
, I want to display the user data immediately without showing the loading
.
Better Auth
Join
9,988
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
Session empty on Elysia server but works on Nextjs client
BA
Better Auth / help
7mo ago
Elysia + Next.js: No session data on client
BA
Better Auth / help
5mo ago
NextJS Elysia send cookies
BA
Better Auth / help
2mo ago