linkWithPhoneNumber method
Future<ConfirmationResult>
linkWithPhoneNumber(
- String phoneNumber, [
- RecaptchaVerifier? applicationVerifier
Link the current user with the given phone number.
Implementation
Future<ConfirmationResult> linkWithPhoneNumber(String phoneNumber,
[RecaptchaVerifier? applicationVerifier]) async {
try {
return ConfirmationResult(
_auth,
await _auth._api.smsAuth.signInWithPhoneNumber(
phoneNumber,
verifier: applicationVerifier,
),
);
} catch (e) {
rethrow;
}
}