Zachoo
CCConvex Community
•Created by Zachoo on 4/28/2025 in #support-community
Logout after period of Inactivity Convex + Clerk - Expo APP

66 replies
CCConvex Community
•Created by Zachoo on 4/28/2025 in #support-community
Logout after period of Inactivity Convex + Clerk - Expo APP
undefined
66 replies
CCConvex Community
•Created by Zachoo on 4/28/2025 in #support-community
Logout after period of Inactivity Convex + Clerk - Expo APP
66 replies
CCConvex Community
•Created by Zachoo on 4/28/2025 in #support-community
Logout after period of Inactivity Convex + Clerk - Expo APP
@erquhart this is what im shown but if i clear app from multi tasking UI and login everything is fine ...
66 replies
CCConvex Community
•Created by Zachoo on 4/28/2025 in #support-community
Logout after period of Inactivity Convex + Clerk - Expo APP

66 replies
CCConvex Community
•Created by Zachoo on 4/28/2025 in #support-community
Logout after period of Inactivity Convex + Clerk - Expo APP
This is strange session exists but clerk use auth hook returns false
66 replies
CCConvex Community
•Created by Zachoo on 4/28/2025 in #support-community
Logout after period of Inactivity Convex + Clerk - Expo APP
The yeah I can show the sentry logs however they don’t trigger on the home screen or n this case but I am still not redirected so it is difficult to say what issue is. I have exact implementation as docs and sentry should trigger if there is a state mismatch which has been tested however the n this case it does not enter that error trigger but I am still not authentic which makes no sense as else I would be redirected. This is the same logic that executes when you clear app from background. The issue only appears after booting with wifi disabled waiting 30s then enabling wifi else leaving app in background for say 48h
66 replies
CCConvex Community
•Created by Zachoo on 4/28/2025 in #support-community
Logout after period of Inactivity Convex + Clerk - Expo APP
@erquhart nothing shows in sentry but i am on the home sign in route and when i click sign in it says session exists ?
66 replies
CCConvex Community
•Created by Zachoo on 4/28/2025 in #support-community
Logout after period of Inactivity Convex + Clerk - Expo APP
Sure but I don’t know how to replicate to get console logs because it happens randomly can only get into the same state by disabling wifi
66 replies
CCConvex Community
•Created by Zachoo on 4/28/2025 in #support-community
Logout after period of Inactivity Convex + Clerk - Expo APP
Hmm maybe different issue I have no problem navigating user from sign in screen it is just that when app has been in background for say 3 days and then reopened user is show /sign in even tho there is an active clerk session only way to get back in is to entirely clearing app from background and reopening user is redirect and signed in fine
66 replies
CCConvex Community
•Created by Zachoo on 4/28/2025 in #support-community
Logout after period of Inactivity Convex + Clerk - Expo APP
Happy to temporarily add you to GitHub so you can see structure ?
66 replies
CCConvex Community
•Created by Zachoo on 4/28/2025 in #support-community
Logout after period of Inactivity Convex + Clerk - Expo APP
If a user opens the app and then leaves it in the background for a day or two—timing which seems random and possibly related to iOS unloading apps to save memory (not a full clear)—then reopens it, they are shown the sign-in screen. However, the logs show that Clerk is still authenticated (it fetches the token from storage), but Convex appears to treat the user as unauthenticated.
66 replies
CCConvex Community
•Created by Zachoo on 4/28/2025 in #support-community
Logout after period of Inactivity Convex + Clerk - Expo APP
I have shared a video of exactly what user sees sometimes if they leave app in background for a while and then reopen in pm
66 replies
CCConvex Community
•Created by Zachoo on 4/28/2025 in #support-community
Logout after period of Inactivity Convex + Clerk - Expo APP
Yes correct @erquhart
66 replies
CCConvex Community
•Created by Zachoo on 4/28/2025 in #support-community
Logout after period of Inactivity Convex + Clerk - Expo APP
Yes as long as the app has not been cleared from background and has been sitting there for an extended period @erquhart
66 replies
CCConvex Community
•Created by Zachoo on 4/28/2025 in #support-community
Logout after period of Inactivity Convex + Clerk - Expo APP
added use effect still have same issue with app returning from background after an extended period of inactivity.
66 replies
CCConvex Community
•Created by Zachoo on 4/28/2025 in #support-community
Logout after period of Inactivity Convex + Clerk - Expo APP
is this issue you had and did use effect code resolve ??
66 replies
CCConvex Community
•Created by Zachoo on 4/28/2025 in #support-community
Logout after period of Inactivity Convex + Clerk - Expo APP
@Pedro Martinez as sign in screen will be wrapped by auth layout i also am redirected every time fine except for if app is in background for several days and then reopened the user is forced to clear app from background to re-sync with convex
66 replies
CCConvex Community
•Created by Zachoo on 4/28/2025 in #support-community
Logout after period of Inactivity Convex + Clerk - Expo APP
hmm i have the same logic but in my _layout file for sign in route did you have same in my mind the logic is the same ???
66 replies
CCConvex Community
•Created by Zachoo on 4/28/2025 in #support-community
Logout after period of Inactivity Convex + Clerk - Expo APP
Have made more readable and still have same error root layout
if for any reason the user is redirected to sign in they are not redirected from there unless the app is cleared.
66 replies