I’m not a lawyer but IIRC there are at least a few...if not more than a few...states where the state legislature has the power to name the Electors that will vote on the day the Electoral College votes (sometime in December).But I can’t swear to that.
All state legislatures actually have the power to simply appoint electors. Per Article 2 of the Constitution electors are chosen in a manner to be determined by the state legislature. If any state legislature decided to ignore the election results and appoint a slate of electors, it would be perfectly constitutional.
Question: Former VP John Breckenridge received the state of South Carolinas electoral votes in the 1860 election that triggered the civil war. What was his margin of victory in the SC popular vote?
If you havent already guessed, its a trick question; there was no popular vote in SC in 1860 (or any other POTUS election prior). The state legislature appointed the electors directly, thus proving the point no popular vote is required by the Constitution.