Untitled
unknown
dart
5 years ago
615 B
7
Indexable
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...