The invention involves the use of a temperature swing adsorption process in steam methane reforming or autothermal reforming H2-production processes to capture CO2 and produce nearly pure off gas streams of CO2 for sequestration or enhanced oil recovery (EOR). The hydrogen stream output is substantially pure and can be recycled as a fuel to the steam methane reformer furnace or used in other petroleum and petrochemical processes.