Skip to content
Back

Auth not working on expo react native

  • 0
  • Android
  • Databases
  • Auth
  • React Native
  • Self Hosted
Vodi
15 Dec, 2025, 19:19

I'm trying to launch a development server with expo go and appwrite as a backend. On my windows pc, I've got a local docker instance of appwrite running as my backend and for my frontend I've got react native expo and I've been using the command npx expo run:android to test using my android emulator on android studio. Now I've finished making the app and it all works, I went to build an apk using eas's cloud service. It finished building on the cloud then i used the link it provided to download the apk on my real android device (I want to be able to use my app wherever I go, while my development server is running on my pc at home). I download the apk then go to my pc to start the development server but when it starts, it says "Metro waiting on http://localhost:8081" rather than "Metro waiting on exp://...." After some research, I tried connecting from my android phone to exp://... despite the fact that it says "waiting on localhost:8081" on my server. It works and the app loads to the login page but after i put in my details and click login, it just stays on the loading screen forever and eventually returns "Invalid cridentials" (I'm 100% sure the credentials are not invalid). and my debugger isnt showing any errors at all. Could anyone possibly know what the problem is. I don't know if this is an appwrite issue or an expo issue.

TL;DR
Developers using Expo React Native: The authentication issue you are facing with Expo Go and Appwrite might be due to the misconfiguration of your development server. The error message "Invalid cridentials" despite correct credentials could be caused by the incorrect backend URL or the lack of proper connection between the frontend and backend. Ensure that your frontend is correctly pointing to the backend URL and that the communication between the two is established. Solution: Check the configuration settings in your React Native app to ensure that it is correctly pointing to the Appwrite backend URL. Verify the network connection between your frontend and backend to avoid authentication issues.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more