flamelink / flamelink-js-sdk

🦊 Official Flamelink JavaScript SDK for both the Firebase Realtime database and Cloud Firestore
https://flamelink.github.io/flamelink-js-sdk
MIT License
43 stars 5 forks source link

Meta values "lastModifiedBy" and "createdBy" are always "UNKNOWN" #139

Closed ribalnasr closed 3 years ago

ribalnasr commented 3 years ago

hello :)

i noticed that when creating a document or updating it using the sdk, the lastModifiedBy and createdBy under _flmeta\ are always "UNKNOWN" even when a user is authenticated. it is important to have the correct values here for logging and security reasons.

(Using Cloud Firestore)

gitdubz commented 3 years ago

Hi @ribalnasr

I will look into it for you, which versions of firebase SDK and firebase Admin SDK are you using? Aslo is the code executed server side or client side when adding a record?

gitdubz commented 3 years ago

Hi @ribalnasr I found the issue and will release an update soonest 👍

gitdubz commented 3 years ago

Hi @ribalnasr an updated version of the SDK has been released.

You can update the flamelink package to 1.0.0-alpha.32, please let me know if this resolves your issue.