What you need to do is split your workflow. After a successful login, check if the user has 2FA turned on. If they do, just redirect them to the 2FA verification page.

If they don’t, send them straight to your main app page. Bubble will take care of the rest for 2FA users once they verify