简体   繁体   English

使用电子邮件、密码、显示名称和 photoURL 创建用户

[英]Creating User with Email, password, display name and photoURL

I'm creating an application with flutter and using firebase for authentication in data storage (possible more).我正在创建一个带有 flutter 的应用程序,并使用 firebase 在数据存储中进行身份验证(可能更多)。

I have an auth onCreate cloud function which adds some user information to my realtime database whenever a user is created.我有一个 auth onCreate 云函数,它会在创建用户时将一些用户信息添加到我的实时数据库中。 But, I also want to set a displayName and photoURL when the user is created because if I update the profile info after, the onCreate won't be triggered.但是,我还想在创建用户时设置 displayName 和 photoURL,因为如果我之后更新个人资料信息,则不会触发 onCreate。 I also don't want users to be able to write to this part of the database.我也不希望用户能够写入数据库的这一部分。

Is there any method I can user to pass an displayName and photoURL when the user is created?在创建用户时,我可以使用任何方法来传递 displayName 和 photoURL 吗? Currently, I'm just creating the user with an email and password.目前,我只是使用电子邮件和密码创建用户。

Thanks.谢谢。

您可以使用可调用函数创建使用 Admin SDK的用户,而不是直接从客户端创建用户,其选项中包含displayNamephotoURL

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 显示用户的照片URL - Display user's photoURL 创建新的Firebase电子邮件密码用户帐户后,Firebase用户的显示名称不会在活动中显示吗? - Firebase user display name won't show on activity after creating new Firebase email password user account? Firebase 使用电子邮件、密码、显示名称和照片网址创建用户 - Firebase create user with email, password, display name and photo url 想要获取当前用户 photourl 和名称 firestore react Native - Want to fetch current user photourl and name firestore react Native Firebase用户photoURL和displayName - Firebase User photoURL and displayName 创建新的用户帐户并发送电子邮件以创建密码-Firebase - Creating new user account and sending email for creating password - Firebase 如何在Firebase中设置电子邮件注册(无密码)和显示名称? - How to set up registration with email (no password) and display name in firebase? 使用 email 和密码创建用户(两者同时) Firebase Flutter - Creating a user with email and password(both at the same time) Firebase Flutter Firebase Auth是否可以在不创建新用户的情况下验证电子邮件和密码? - Is it possible for Firebase Auth to validate email and password without creating a new user? 使用 firebase 创建用户时设置显示名称 - set display name while creating user with firebase
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM