The United States joint chiefs of staff chairman Gen. Mark Milley reportedly engaged in a shouting match with former U.S. President Donald Trump during a discussion on who would be in charge of the federal government's response to the racial justice protests.

Gen. Milley's outburst was also met by Trump's anger who cursed at the chiefs of staff chair, stating that Milley cannot talk back to him like that.

According to Axios via Yahoo News, the shouting match that happened in the White House situation room was mentioned by Michael Bender in his book 'Frankly, We Did Win This Election: The Inside Story of How Trump Lost.' The Wall Street Journal reporter, Bender, will have his book published in August but it has been extensively checked.

Last week, Milley made headlines after he clashed with Republicans regarding teaching that concerns the history of racism in America. He was also called 'pig' and 'stupid' by the Fox News host Tucker Carlson.

Based on a previous excerpt of Bender's book, it showed that Milley resisted Trump's urges to "crack skulls" and "just shoot" protesters marching for racial justice after the murder of George Floyd by then-Minneapolis police officer Derek Chauvin.

The exchange, which was reported by Axios, revolved around command authority. In his written book, Bender said that Milley told Trump that he was an adviser but could not command the response. Trump reportedly shouted, "I said you're in f*****g charge!"

Milley allegedly yelled back to Trump that he was not in charge. Trump reportedly shouted that Milley cannot talk to him like that.

Bender reported that Milley asked the advisers present in the situation room if they can inform Trump regarding Milley's legal responsibilities. Then attorney general, William Barr, allegedly is said to have backed Milley up.

Fake News Claim

However, Trump has denied the exchange in front of other top officials. Trump's spokesperson called the alleged exchange 'fake news.' He also stated that Bender, like scores of other authors, always interviewed the former president for his book. The spokesperson mentioned that Trump asked him not to mention it because it was totally fake news, The Guardian reported.

Trump also emphasized that if General Milley had yelled at him, he would have fired him. It has been widely reported that former president Trump wanted to invoke the Insurrection Act, which is a historic piece of legislation to deal with domestic unrest. It was used during the 1992 Los Angeles riots. The New York Times reported that aides had drafted an order but the act was never invoked. The general reportedly opposed the use of the act.

Trump raged at the governors during a conference call on June 1, 2020. The former president told them to toughen up in response to protests that turned into violence. Trump stated that if the governors were not dominating their state and cities, people will go away. He also mentioned during that time that they will be doing something people have not seen before in Washington.

WATCH:General Mark Milley hits back at uproar over critical race theory - Reuters