Can I allow a user to make a custom username at the time of Registration if they use Google/Facebook sign in?

后端 未结 2 1725
花落未央
花落未央 2021-01-26 10:05

I just implemented Firebase authUI in an app but I\'d like my users to be able to have usernames/display names that aren\'t their names on those accounts, without f

2条回答
  •  星月不相逢
    2021-01-26 10:20

    By default, by login in with Google or Facebook you can assign to that user his name from the service that is using (google or facebook) but with FirebaseAuth once you are logged in you can display any sort of dialog requesting the user to complete a certain profile with data, name, birth date and more, and then just store that data inside that userID that is generated with Google-Facebook sign in and display that data to the user.

提交回复
热议问题