为了检查用户是否通过 Google 登录登录,我正在使用此代码 -
"test": {
".read": "(auth != null) && (auth.provider == 'google')",
".write": "(auth != null) && (auth.provider == 'google')"
}
如何编写安全规则来检查用户是否通过电话身份验证登录?
这应该允许访问通过电话提供商进行身份验证的用户:
"test": {
".read": "(auth != null) && (auth.provider == 'phone')",
".write": "(auth != null) && (auth.provider == 'phone')"
}
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句