Untitled
Anonymous
Dart
04/29/2021 9:11 AM
615 B
16
Indexable
Never
try {
_userCredential = await _firebaseAuth
.createUserWithEmailAndPassword(
email: registerData['phonemail'],
password: registerData['password'])
.then((value) => _firebaseAuth.currentUser!
.linkWithCredential(phoneAuthCredential));
if (_userCredential.user == null) {
_status = AuthResultStatus.undefined;
} else {
_status = AuthResultStatus.successful;
}
} on FirebaseAuthException catch (e) {
print('Failed with error code: ${e.code}');
_status = AuthExceptionHandler.handleException(e);
}Editor is loading...