简体   繁体   中英

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? 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. So in your case you have to save user's info in the firebase realtime database after phone number verification. Create a node names "Users" then push the user's details into firebase realtime database. 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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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