问题
This question might sound silly to some, my scenario was that i had to implement facebook login in my mobile app.
I added to my project:
- Facebook SDK
- Firebase authentication SDK
- Implement both Facebook login and Firebase authentication mechanism for facebook.
Couldn't i just implement facebook SDK and implement the login?
I understand the benefit of receiving statistics about users and logins from different social networks in one place.
Are there more benefits i am missing?
回答1:
You're most likely to use Firebase Authentication if you
- Use other Firebase products, which integrate with it. For example Cloud Firestore integrates with Firebase Authentication to provide a server-side security model, while allowing direct database access from the client.
- Use multiple providers, and want to link them together. Firebase Authentication allows accounts to be linked, so that a user ends up with one profile, no matter if they sign in with Facebook today, and with Google tomorrow.
来源:https://stackoverflow.com/questions/52064269/firebase-authentication-benefits