White House press secretary Sarah Huckabee Sanders said on Tuesday that she hopes to be remembered as being "transparent and honest" when her tenure in the role comes to an end.

Sanders's remarks came while speaking at Politico's "Women Rule" event on Tuesday with reporter Eliana Johnson about what she wanted her legacy to be.

"I hope that it will be that I showed up every day and I did the very best job that I could to put forward the president's message," as well as "to do the best job that I could to answer questions," Sanders said.

"To be transparent and honest throughout that process and do everything I could to make America a little better that day than it was the day before," she continued.

Sanders said earlier this year that it "bothers" her that people think she misleads the media.

Sanders told The New York Times in May that she tries to deliver the "best and most accurate information at the time that I can" and feels a responsibility to be truthful in her role as chief White House spokeswoman.

"One of the few things you have are your integrity and reputation," Sanders, who was once fact-checked live by CNN during a press briefing, said in the interview.

"There's a difference between misspeaking or not knowing something than maliciously lying," she added.