예제 #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));
        }