Convex Auth with Expo/React Native: isAuthenticated state not updating
I have a pretty similar setup to the
convex-auth-example
repo. I believe the entire signIn/signUp flow is completing successfully, but for some reason, isAuthenticated
from useConvexAuth
isn't returning true.
The attached screenshot shows the app's console logs on the left side and Convex's logs on the right side. You'll notice that despite signIn returning a success status and despite the calls to refreshSession (implying there's an active session stored in the app) when I refresh the app, isAuthenticated
on the left side is always false.
layout.tsx file looks something like this:

1 Reply
Okay, so turns out, it was actually because I changed the
applicationId
in auth.config.ts
from convex to something else. I'm not sure if it's because I changed it after deploying initially or it just can't ever be changed. Wish there was a bit more explanation in the docs: https://labs.convex.dev/auth/setup/manual#configure-authconfigts
Manual Setup - Convex Auth
Authentication library for your Convex backend