You can write in the
cookie a unique
id.
Utility to generate.
To write
firebase data on this key.
During application initialization to check if
the cookie is there, then request in
firebase data by key. If not generate
id and record in a
cookie. As a result, the notes would all be different. And to pick up a foreign
id key is unlikely.
However, the logic of the update notes have to change, but you do so and so will have to change.
Here it will be necessary for each change to write the array in
firebase one key.
And then the authorization will understand.
Instead of
cookies , you can use
localstorage.
Even easier yet to write user stories in
localstoragewithout using
firebase
Thank you :) - krista.Eichma commented on June 10th 19 at 15:31