public async Task <AuthenticationResult> UpdatePassword(string password) { var result = new AuthenticationResult { Code = AuthenticationResultCode.Success }; await FirebaseAuth.DefaultInstance.CurrentUser.UpdatePasswordAsync(password).ContinueWith(task => { if (!TaskIsOk(task)) { result = FirebaseError.AuthenticationError(task.Exception, _translator); return; } }); return(result); }
public async Task <AuthenticationResult> ResetPassword(string email) { var result = new AuthenticationResult { Code = AuthenticationResultCode.Success }; await FirebaseAuth.DefaultInstance.SendPasswordResetEmailAsync(email).ContinueWith(task => { if (!TaskIsOk(task)) { result = FirebaseError.AuthenticationError(task.Exception, _translator); return; } }); return(result); }