prescottprue / react-redux-firebase

Redux bindings for Firebase. Includes React Hooks and Higher Order Components.
https://react-redux-firebase.com
MIT License
2.55k stars 556 forks source link

Feature: Disable creation of Profile in Firestore if userProfile is provided #863

Open h36ahmed opened 4 years ago

h36ahmed commented 4 years ago

What is the current behavior? If you provide userProfile, it will get and create profile in firestore or real time database.

What is the expected behavior? I would like the client side not to create profile if the user sign ups or logs in with a provider like Google. This can be achieved by putting a flag, createProfileOnSignup on ReactReduxFirebaseConfig for creating user profile or not if it doesn't exist. By default it can be true to ensure there is no breaking change and code is backward compatible.