用户名认证而不是电子邮件 [英] Username authentication instead of email

查看:174
本文介绍了用户名认证而不是电子邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

借助Firebase,我可以使用电子邮件地址注册并登录用户。但是,如果我想要的应用程序是基于用户名。例如,您将使用Bobzilla而不是Bob@mail.com登录?



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屋!

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