Clerk + Convex + RN: If using simulators, auth session is shared among devices

I'm using a local environment with 2 or more simulators running my app in Expo Go. If I request a query or mutation from the client, the server with convex seems to recognize every device logged with the same user who connected firstly. So, if I create a document with a mutation from the second connected device logged with different account, I see the new document listed in the UI by the useQuery only in the first logged device in the same network (local). Is there a way to differentiate session among different devices in the same local network?
2 Replies
Convex Bot
Convex Bot2w ago
Thanks for posting in <#1088161997662724167>. Reminder: If you have a Convex Pro account, use the Convex Dashboard to file support tickets. - Provide context: What are you trying to achieve, what is the end-user interaction, what are you seeing? (full error message, command output, etc.) - Use search.convex.dev to search Docs, Stack, and Discord all at once. - Additionally, you can post your questions in the Convex Community's <#1228095053885476985> channel to receive a response from AI. - Avoid tagging staff unless specifically instructed. Thank you!
erquhart
erquhart5d ago
Welcome! Trying to understand what's being described here. If you have multiple devices running your Convex app (local or not), they will all update reactively when data changes. Are you saying only the first device to log in gets query updates? If so, are there any logs or errors showing? You can turn on verbose logging to get more info in your logs: https://labs.convex.dev/auth/debugging#enabling-verbose-logging
Debugging - Convex Auth
Authentication library for your Convex backend

Did you find this page helpful?