© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
Get session data on first load (nextjs + elysia) - Better Auth
BA
Better Auth
•
12mo 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
.
Similar Threads
Session empty on Elysia server but works on Nextjs client
BA
Better Auth / help
9mo ago
Elysia + Next.js: No session data on client
BA
Better Auth / help
7mo ago
NextJS Elysia send cookies
BA
Better Auth / help
4mo ago