添加“全名"Firebase 电子邮件/密码身份验证字段? [英] Add a "Full Name" Field to Firebase Email/Password Authentication?
本文介绍了添加“全名"Firebase 电子邮件/密码身份验证字段?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有没有办法在 Firebase 的电子邮件/密码身份验证中添加全名"字段?(使用 Swift)
Is there a way to add a "Full Name" field to the Email/Password authentication on Firebase? (Using Swift)
推荐答案
您不能将自己的自定义字段添加到 Firebase 身份验证社交提供程序(Facebook、Google 等)或电子邮件+密码.您当然可以将此类信息存储在您的 Firebase 数据库中,以用户 ID 为键:
You cannot add your own custom field to the Firebase Authentication social providers (Facebook, Google, etc) or email+password. You can of course store such information in your Firebase Database, keyed by the user's ID:
users
uid_209103
fullName: "Frank van Puffelen"
请注意,Firebase 身份验证已经有一个每个用户的 displayName
属性,可能满足您的需求.
Note that Firebase Authentication already has a displayName
property for each user, which may cover your needs.
这篇关于添加“全名"Firebase 电子邮件/密码身份验证字段?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文