ZachooZ
Convex Community13mo ago
6 replies
Zachoo

Programmatically force convex to reload and re authenticate ?

Is there a way to force the Convex auth provider to refresh? I’m almost done building a full-stack monorepo using Next.js and Capacitor, leveraging the full capabilities of Convex, including authentication. Everything works fine until the iOS WebView gets killed in the background to save memory. As a result, when the user returns to the app after a period of inactivity, they end up in a stale state and are stuck on a loading screen. The only way to resolve this is by clearing the app from the background and reopening it, at which point it re authenticates correctly. Next Js
Was this page helpful?