Abraham Lincoln? Isn't he the President who...

was sworn in secretly after winning by one electoral vote?

No...you're thinking of Rutherford Hayes.
Try Again?