Nearly two decades before he gained infamy by authoring the so-called "coup memo" that advised then-Vice President Mike Pence to block the certification of the 2020 presidential election, attorney John Eastman took on an advisory role in crafting a right-wing novel about a Jesus-loving Supreme Court justice.

The Daily Beast's Jose Pagliery reports that Eastman served as a legal consultant for "Deadlock," a 2002 novel about a liberal Supreme Court justice who becomes a hardcore born-again Christian after having a near-death experience.

According to Pagliery, the book "infantilizes a middle-aged woman whose intellect earned her a seat on the nation’s highest court, recycles tired conservative talking points about abortion mills, and demonizes liberals by reducing them to literary tropes" and probably would have been completely forgotten were it not for Eastman's role in crafting it.

Among the more amusing sections of the book is the now-converted liberal justice falling hard for a jeans-wearing preacher with rugged good looks and who had "tanned arms" that were described as "glistening with perspiration."

IN OTHER NEWS: State attorney explains how Judge Cannon could risk being taken off Trump case in upcoming hearing

Pagilery discovered Eastman's role in crafting the book when he saw that its author, James Scott Bell, donated $100 to Eastman's legal defense fund as he tries to fight off being potentially disbarred for his role in trying to help Trump illegally cling to power.

"Praying for you, John," Bell wrote in a message to Eastman when he made his donation. "You helped me with my novel about the Supreme Court years ago."