简体   繁体   English

firebase 中的电话号码身份验证 android 中的身份验证

[英]phone number authentication in firebase auth in android

How to check if the user is already authenticated in firebase Auth by phone number in Java, Android studio?如何检查用户是否已在 firebase 通过电话号码在 Java、Android 工作室中进行身份验证? I am unable to think of any possible logic, can anyone help me with a possible outcome in code.我无法想到任何可能的逻辑,任何人都可以帮助我获得代码中的可能结果。

Firebase doesn't provide any method to access authentication table from firebase console. Firebase 不提供从 firebase 控制台访问身份验证表的任何方法。 So in your case you have to save user's info in the firebase realtime database after phone number verification.因此,在您的情况下,您必须在电话号码验证后将用户信息保存在 firebase 实时数据库中。 Create a node names "Users" then push the user's details into firebase realtime database.创建一个节点名称“Users”,然后将用户的详细信息推送到 firebase 实时数据库中。 Now before sign up check the phone number if it exist in the DB then redirect user to your home page else call sign up method.现在在注册之前检查电话号码是否存在于数据库中,然后将用户重定向到您的主页,否则调用注册方法。

For more info check this有关更多信息,请查看

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM