用户名认证而不是电子邮件 [英] Username authentication instead of email
问题描述
Firebase是否可以使用?
读范读亦读范范读范辛亦亦方上中的信息中亦亦读预叙所以,一旦你确定了用户名,用
<用户名> @ vikzillasapp.com
注册你的用户。信息内读队范读亦范范中读范读内预章范范范范秘秘区范讯范秘区范范亦读信息中信息上亦读不适合您的需求,您可以使用指令来推出自己的身份提供商Firebase文档。这需要在受信任环境中运行的代码,您可以使用自己的服务器或 Firebase云端函数。
With Firebase I can sign up and login users using email addresses. However what if I want the app to be username based. For example, you would log in with "Bobzilla" instead of "Bob@mail.com"?
Is this possible with Firebase?
Simple: you can add any domain behind the username. So once you have determined the user name, register your user with <username>@vikzillasapp.com
.
Note that this will make it impossible to for the user to reset their password if they forget it, since Firebase uses the email address to send the password reset email.
If this doesn't suit your needs, you can roll your own identity provider using the instructions in the Firebase documentation. This requires code that runs in a trusted environment, for which you can use your own server or Cloud Functions for Firebase.
这篇关于用户名认证而不是电子邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!