phone number authentication in firebase auth in android

Viewed 112

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.

1 Answers

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

Related