Пример #1
0
 public async Task UpdatePhoneNumberAsync(IPhoneAuthCredential credential)
 {
     try
     {
         await _user.UpdatePhoneNumberAsync(credential.ToNative()).ConfigureAwait(false);
     }
     catch (FirebaseException 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);
     }
 }
 public Task UpdatePhoneNumberAsync(string verificationId, string smsCode)
 {
     return(_wrapped.UpdatePhoneNumberAsync(PhoneAuthProvider.GetCredential(verificationId, smsCode)));
 }