[英]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我使用 updateProfile 函数,但它似乎只收集名字和照片
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.然后,在您的
updateProfile
函数中,您可以访问和更改您想要的任何属性。
Also, provide the code for your function as it helps in understanding the question better.此外,请提供您的函数的代码,因为它有助于更好地理解问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.