how can i store my username and the photo url on firebase auth web server?

Firebase Authentication doesn’t have a user property that stores username. You would have to store that on your own, in a database, and make sure the string is unique.

You can store a profile picture URL using updateProfile(). It will not store the image for you – you can only provide a URL. If you need to store the image file itself, tou should probably consider using another product for that, such as Cloud Storage.

Typically, if you have custom information to store per user, you should do that in a database using the unique ID of the user signed in. This gives you full control, rather than depending on what Firebase Auth provides (which is not much). The purpose of Auth is to validate the user’s identity, not store per-user information.

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top