Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
refetch() from useSession() return cached data - Better Auth
BA
Better Auth
•
9mo ago
•
22 replies
Imam
refetch() from useSession() return cached data
Why does calling
refetch()
refetch()
from
useSession()
useSession()
return cached data
? This only happens in production
. The updated data is returned after approximately 50 seconds
. In development
, it always returns fresh data immediately after calling
refetch()
refetch()
Better Auth
Join
9,988
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
SolidJS useSession hook - refetch
BA
Better Auth / help
11mo ago
const { data } = await authClient.useSession()
BA
Better Auth / help
12mo ago
useSession
BA
Better Auth / help
14mo ago