© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
refetch() from useSession() return cached data - Better Auth
BA
Better Auth
•
10mo 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()
Recent Announcements
Similar Threads
SolidJS useSession hook - refetch
BA
Better Auth / help
12mo ago
How to call `refetch()` from `const {refetch} = authClient.useSession() ` in Electron?
BA
Better Auth / help
2w ago
const { data } = await authClient.useSession()
BA
Better Auth / help
13mo ago