dalenguyen / firebase-wordpress-plugin

A plugin that helps to integrate Firebase to WordPress
https://firebase-wordpress-docs.readthedocs.io
GNU General Public License v2.0
111 stars 31 forks source link

Syncing users overwritesall other child keys in database. #132

Closed MerlinOfCode closed 3 years ago

MerlinOfCode commented 4 years ago

I had to deactivate the user syncing feature, because everytime a user would login to the site, all the data they added in firebase would be over-witten with the data being synced from login. Is there a way to just update the existing nodes?

For instance, a user sings up, and this is sent to firebse:

wp-users:

    email
    displayName
    photoUrl
   etc...

If they then add more data in the app, such as background photo, about, etc.., when they login to the website again thru firebaseui_web, all the new nodes created in firebase get deleted and set back to the original map.

Is there a way to prevent this?

dalenguyen commented 3 years ago

Hi @TheWizardofWikacy, please help provide the following information:

dalenguyen commented 3 years ago

Should be fixed.

MerlinOfCode commented 3 years ago

Thank you.

On Sat, Dec 5, 2020, 4:16 PM Dale Nguyen notifications@github.com wrote:

Should be fixed.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/dalenguyen/firebase-wordpress-plugin/issues/132#issuecomment-739417098, or unsubscribe https://github.com/notifications/unsubscribe-auth/AO6NLXOWUJCDZ2EATHLAINDSTKPJFANCNFSM4UEEVUOQ .