添加“全名” Firebase电子邮件/密码验证字段? [英] Add a "Full Name" Field to Firebase Email/Password Authentication?

查看:122
本文介绍了添加“全名” Firebase电子邮件/密码验证字段?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法在Firebase上的电子邮件/密码身份验证中添加全名字段? (使用Swift)

解决方案

您无法将自己的自定义字段添加到Firebase身份验证社交提供程序(Facebook,Google等)电子邮件+密码。您当然可以将这些信息存储在您的Firebase数据库中,并由用户的ID键入:

 用户
uid_209103
fullName:Frank van Puffelen

请注意,Firebase身份验证已经有一个 displayName property 为每个用户,这可能会涵盖您的需求。


Is there a way to add a "Full Name" field to the Email/Password authentication on Firebase? (Using Swift)

解决方案

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"

Note that Firebase Authentication already has a displayName property for each user, which may cover your needs.

这篇关于添加“全名” Firebase电子邮件/密码验证字段?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆