“FBI Special Agents respect Director Wray’s leadership and look forward to continuing to work with him to protect this great country from national security and criminal threats,” said Brian O’Hare, president of the FBI Agents Association, in a statement and letters to both Trump and Biden.

The vote of confidence in Wray comes as he appears to be on increasingly tenuous footing under Trump, who has publicly assailed him for declining to investigate the president’s political adversaries and for undercutting Trump’s political narratives about foreign election interference and left-wing violence.

In recent days, sources close to Trump have fueled stories suggesting Trump is preparing to fire Wray after the election, and may remove other members of his national security team who he has criticized for similar reasons.

Biden, on the other hand, has given no indication about whether he would seek to retain Wray, whose term would expire in 2027. Spokespeople for the Biden campaign and transition did not immediately respond to requests for comment.