Firebase可以处理多种类型的用户帐户吗? [英] Can Firebase handle multiple types of user accounts?

查看:41
本文介绍了Firebase可以处理多种类型的用户帐户吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在考虑将Firebase用于我的下一个项目,但是我需要多种用户帐户类型(管理员和标准用户).Firebase的用户身份验证是否支持多种用户类型?如果是这样,我将如何检查用户类型,然后反向设置用户类型?

I’m looking into using Firebase for my next project, however i need multiple user account types (admin and standard user). Does Firebase’s user authentication support multiple user types? If so, how would I check the user type, and inversely set the user type?

推荐答案

Firebase Auth帐户不会区分用户类型,也不会为此提供任何配置文件设置.用户类型是您必须使用自己的"admin"定义来自己实现的概念.或标准"或您需要的任何东西.

Firebase Auth accounts don't discriminate between user types, nor does it offer any profile settings for that. User type is a concept that you have to implement for yourself using your own definitions of "admin" or "standard" or whatever it is you need.

这篇关于Firebase可以处理多种类型的用户帐户吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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