public async Task ReauthenticateAsync(IAuthCredential credential)
 {
     try
     {
         await _user.ReauthenticateAsync(credential.ToNative()).ConfigureAwait(false);
     }
     catch (NSErrorException e)
     {
         throw ExceptionMapper.Map(e);
     }
 }
        public async Task <IAuthResult> LinkWithCredentialAsync(IAuthCredential credential)
        {
            try
            {
                var result = await _user.LinkAsync(credential.ToNative()).ConfigureAwait(false);

                return(new AuthResultWrapper(result));
            }
            catch (NSErrorException e)
            {
                throw ExceptionMapper.Map(e);
            }
        }
Esempio n. 3
0
        public async Task <IAuthResult> ReauthenticateAndRetrieveDataAsync(IAuthCredential credential)
        {
            try
            {
                var result = await _user.ReauthenticateAndRetrieveDataAsync(credential.ToNative()).ConfigureAwait(false);

                return(new AuthResultWrapper(result));
            }
            catch (FirebaseException e)
            {
                throw ExceptionMapper.Map(e);
            }
        }