Im using firebase console as my data base. I'm have a user profile and I want to populate it with another user's info. I already have a list of users then I click see user profile goes there then it should populate it with that user's info. I know how to get info for the logged in user but I don't know how to do it for another user's.
Asked
Active
Viewed 12 times
0
-
Firebase Authentication's client SDKs don't have an API for getting another user's profile information, as that would be a security risk. If you want to be able to see other user's information in your app you have to *either* store that information in the database for each user and then read it from there (most common) *or* wrap the Firebase Admin SDKs function to list users in a custom API and call that from your application (less common, but also valid). – Frank van Puffelen Nov 20 '21 at 21:31