简体   繁体   中英

Is it possible when registering a user via firebase and react to collect his first name, last name, phone number and address?

I use the updateProfile function, but it seems to only collect first name and photo

You must have a user schema defined and exported as a model somewhere in your project directory. Make sure that it contains all the required fields. Then, in your updateProfile function, you can access and change any property that you want.

Also, provide the code for your function as it helps in understanding the question better.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM