Back

Appwrite with React Native expo

  • 0
  • General
  • Accounts
Ocean_dev
23 Dec, 2023, 19:39

I actually need to build a small mvp expo app. The only strict requirement is Azure AD login. In auth settings I enabled microsoft auth with necessary fields. Now when I try to add platform to the project, what do I put under Hostname?

TL;DR
The user is trying to integrate Appwrite with React Native Expo and is specifically looking for tutorials on social authentication using Appwrite. They mentioned they have basic email password authentication working with Firebase in their Expo app and are wondering if they need to set up Android and iOS apps for Appwrite authentication as well. Another user clarifies that for both Firebase and Appwrite, if you're making requests from an iOS or Android device or emulator, you need to set up the corresponding platform. If you're making requests from a web app, you need to add the domain as a web platform. The user realizes they only need to set up a web app
Christy Jacob
23 Dec, 2023, 19:40

expo is react native right? So it eventually converts to an iOS and android app?

Christy Jacob
23 Dec, 2023, 19:40

In this case, you can add an android ( and/ or ) iOS platform and use the package name instead

Ocean_dev
23 Dec, 2023, 19:41

Ahh I see. For firebase I had to setup web app instead of android and ios for react native. So i thought i had to do the same. I will try that.

Christy Jacob
23 Dec, 2023, 19:43

Yea if you're making a request using an iOS or android device or emulator, you've to setup the corresponding platform. if you're making requests to Appwrite from a web app, you've to add the domain as a web platform

futurmaster
23 Dec, 2023, 20:31

That’s not true bro. By Firebase you have to do the same and setup an Android and iOS app to get the proper auth files for the expo app

Ocean_dev
23 Dec, 2023, 20:37

I literally have email password working with firebase auth in my expo app. For my flutter app I did have to make ios and android app, but for my expo, I did web.

futurmaster
23 Dec, 2023, 20:43

Basic auth is another thing, but for social auth you need to create the proper platform type registration to get the authentication files (Infoplist and gs json) 🙂

Ocean_dev
26 Dec, 2023, 01:06

yes you're right. When I said I have firebase working I meant basic email password auth. Okay I will try android and ios app and see where that takes me. I really wish we had some good RN tutorials for social auth using appwrite. Thanks

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