How can I register a username in Firebase?

前端 未结 3 1240
醉话见心
醉话见心 2021-01-24 21:07

I am trying to implement the registration of a username in Firebase since it only gives me methods that are like the createUserWithEmailAndPassword(), but you can n

3条回答
  •  南笙
    南笙 (楼主)
    2021-01-24 21:15

    If you're using email/password auth with a username instead, you can simply index the users to email addresses in a sep path. Then when a user authenticates, look up their email in the index:

    /user_to_email_index/$user_name/ https://www.firebase.com/docs/web/guide/login/custom.html

提交回复
热议问题