Firebase - user id - authentication

Does anyone know how to incluide the firebase authentication (user id) inside a database collection? For example inside the database collection ( Item - Price - City - USER ID) so that user id should be repeated with the authentication ID

hello mateo
yes you can using a flow logic called get current user.
so creat an app variable called userId
so link the get current userid after the page monted then use a set app variable component after it
u will found the userId as an output from the first one
now u have the user id in your app variable you can use it to creat your record

i wish that helps you

1 Like

Thank you can you please explain me how to make it appear in the database? I did exactly what you said but I would like to make the user id in database same as the auth one but it doesnt show in firebase