I am working on a project, where I want the users to able to view each others profiles.
I want the the url to be like github, so my-project.com/username
. To achieve that I want to set a custom uid for everyuser. I don’t want the uid to random characters like it is by default in firebase authentication. I want it to be a unique and readable username .
I tried researching inside firebase docs about this, but i could not find anything. the closest thing to the was the auth cloud function trigger functions.auth.user().beforeCreate(). But this is not what I need because through this I cannot set the uid.
Zain Khoso is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.