Defender 2FA & Domain mapping causing a Login loop

There is a log in issue caused by the wp-defender, when I enable the 2FA I can't login to the site and keep getting redirected to the login page.