Firebase 可以处理多种类型的用户帐户吗? [英] Can Firebase handle multiple types of user accounts?
问题描述
我正在考虑将 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屋!