If it were not a random code, a voicemail on a dedicated number could authenticate. Since it is a random code, that no longer will work.
Solved! Go to Solution.
Alternatively, if you are not specifically testing that 2FA works can you add something into your application that checks for our User Agent string and if it's included skips the 2FA.