The FBI informed White House counsel Donald McGahn about allegations of wife beating against Rob Porter in March 2017 — casting doubt on the Trump administration’s explanation of the timeline, a new report said Thursday.

Porter, President Trump’s former staff secretary, was forced out in February over allegations that he had abused his two ex-wives were publicly revealed.

The White House at first defended Porter — a favorite of the president’s — but then issued differing accounts of how Team Trump handled the allegations, insisting no senior staffers knew about them until shortly before he resigned under pressure.

But The New York Times reported that in a letter sent this month to the leaders of the House Oversight and Government Reform Committee, which is investigating how Porter got a security clearance, a top FBI official said that on March 3, 2017, the bureau sent a “partial report” on Porter “addressed to the Counsel to the President, Donald F. McGahn, which contained derogatory information.”

An ex-federal law enforcement official said the violent abuse allegations were included in the file, the paper reported.

The feds gave a more complete report to the White House personnel security office in July, according to the letter.

A White House official told The Times that McGahn never saw the letter.

The White House had earlier claimed that the March report contained only routine employment information about Porter, not allegations of abuse, including from his first wife, who had a photo of herself with a black eye she said came at her then-hubby’s hands.