PropelAuth's account pages also include 2FA enrollment for your end users.

user enabling 2fa
We manage the entire 2FA process, including enrollment UIs

You do not have to write any additional code to provide your users with 2FA. They can enroll on the existing account page, and your hosted login pages will handle enforcing 2FA.