Let's say I have a register activity that has these inputs:
- Full name
- Phone number
- Password
After the appropriate entry is written in a SQL table, then registration is successfully done. Also, an entry is added into Firebase Authentication (the enabled providers are email/password and phone number) like this:
But at the login activity, you only have 2 inputs: phone number and password. Is there an easy way to determine if a phone number is already signed in?
Firebase documentation only provides a sample using email and password, like this:
mAuth.signInWithEmailAndPassword(email, password)
.addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {
});