Untitled

mail@pastecode.io avatar
unknown
dart
3 years ago
615 B
1
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);
    }