signInWithPhoneNumber method
Phone Number Login
Web Platform support
Implementation
Future<ConfirmationResult> signInWithPhoneNumber(String phoneNumber) async {
try {
return firebaseAuth.signInWithPhoneNumber(phoneNumber);
} catch (e) {
throw FirebaseAuthenticationResult.error(
errorMessage:
'We could not send a verification code to your phone number. Please try again.',
exceptionCode: e.toString(),
);
}
}