-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
📚 Documentation: Integrating Firebase Phone Auth with Appwrite #3803
Comments
As far as I can tell Firebase do not provide an API for sending SMS messages which is what required for integrating it as a messaging provider in Appwrite. You might be better waiting for Appwrite Cloud which will provide its own free tier. |
I do not think we need firebase messaging API. Firebase SDK for flutter handles everything. When a user is successfully logged in the app firebase auth SDK tells that the user is logged in. moreover firebase auth SDK provides a JWT token for the currently logged-in user. Can we use that token or can we use any other appwrite authentication which will be based on firebase authentication? If the user is successfully logged in to firebase then login him/her on appwrite too. |
This brush-off attitude is what turns me away from Appwrite. The original requester has asked for a very useful feature for mobile apps which I would also like to see. He has clearly described it. The response he got back was a bureaucratic brush off. If Appwrite doesn't take its users' requests seriously, users won't take Appwrite seriously either. |
We have accepted hundreds of issues and PRs from community suggestions by now. We will be more than happy to add support for Firebase or any other service vendor out there. Adding SMS adapters for phone auth is something that was designed to work with communication providers like Twilio, Telesign or Vonage. New adapters can be easily contributing by following the contribution guide. Adding Firebase as an OAuth adapter would also be possible if such an API was provided by Firebase, instead you could use Google's OAuth adapter. Syncing functionality between two different auth providers is not supported in Appwrite for any provider but could be achieved by implementing such behavior on the client side or using Appwrite Functions. From the original issues, the main motivation is getting free SMS credits, If you think there is a valid need for such sync functionality to be part of the Appwrite built-in functionality please share relevant use cases for the team to consider. |
@eldadfux Thanks for a more useful response. |
@quibenefacit, the SMS providers we support allow us to generate codes ourselves, use the provider to send the code, and then we have the code in our database so that we can verify it. Unfortunately, Firebase does not expose any API that allows us to send an SMS message; their phone authentication is fully siloed into their platform. Some additional resources from a quick search:
|
@stnguyen90 Thank you, all of this is finally making sense. |
@quibenefacit, this is a good start, but some things have changed since this was published. For example, the environment variables are now:
Refer to our docs for the latest info: |
@stnguyen90 I'm closing this because this is no longer relevant to Appwrite + Firebase auth.
|
💭 Description
How to make it possible? I want to use firebase phone authentication. As it provides a lot of smses free in contrast to Twillo and textmagic which do not provide any free quota and seamless verification (Firebase auth flutter SDK sometime auto verify the OTP). So I can first authenticate a user with firebase SDK with flutter which is easy. But how to authenticate that user with appwrite?
👀 Have you spent some time to check if this issue has been raised before?
🏢 Have you read the Code of Conduct?
The text was updated successfully, but these errors were encountered: