Пример #1
0
 public async Task UpdatePhoneNumberAsync(IPhoneAuthCredential credential)
 {
     try
     {
         await _user.UpdatePhoneNumberCredentialAsync(credential.ToNative()).ConfigureAwait(false);
     }
     catch (NSErrorException e)
     {
         throw ExceptionMapper.Map(e);
     }
 }
Пример #2
0
 public async Task UpdatePhoneNumberAsync(IPhoneAuthCredential credential)
 {
     try
     {
         var wrapper = (PhoneAuthCredentialWrapper)credential;
         await _user.UpdatePhoneNumberAsync((PhoneAuthCredential)wrapper).ConfigureAwait(false);
     }
     catch (FirebaseException e)
     {
         throw ExceptionMapper.Map(e);
     }
 }
Пример #3
0
 public PhoneNumberVerificationResult(IPhoneAuthCredential credential, string verificationId)
 {
     Credential     = credential;
     VerificationId = verificationId;
 }
Пример #4
0
        public IPhoneMultiFactorAssertion GetAssertion(IPhoneAuthCredential phoneAuthCredential)
        {
            var assertion = PhoneMultiFactorGenerator.GetAssertion(phoneAuthCredential.ToNative());

            return(new PhoneMultiFactorAssertionWrapper(assertion));
        }