gustavG
Convex Community17mo ago
4 replies
gustav

convex auth - getting logged out after 1 day

Hi guys,
I'm using OTP, often overnight when I get back to my app I can't fetch anything and get this message(see image).

I'm also listening to isAuthenticated at the root of my app:
const { isAuthenticated, isLoading } = useConvexAuth();

But it still logs out that I'm indeed authenticated. After one refresh of the page I get logged out. I also tried the <Authenticated/> <Unauthenticated/> components but having the same result.

So, two questions:
- Why am I getting logged out? Using vite.
- Why is the isAuthenticated not updating without a page refresh
Screenshot_2024-09-12_at_08.59.23.png
Was this page helpful?