convex auth - getting logged out after 1 day
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

