President Harrison died just one month after taking office, and Tyler became the first vice president to succeed to the presidency without election. He served longer than any president in U.S. history not elected to the office. To forestall constitutional uncertainty, Tyler immediately took the oath of office, moved into the White House, and assumed full presidential powers—a precedent that governed future successions and was codified in the Twenty-fifth Amendment.