I’m using (trying to use) Playwright to do e2e testing of our forge apps. While I have turned off 2FA in the test environment and recorded a login sequence and store the session data to re-use with the following tests I discovered it thinks the headless browser is different to the one with a head and so it emails a damn 2FA token to me to enter into the headless browser - this is definitely a pain point. How do we just turn off 2FA for a test/dev instance or get around it? Can we?
Or should we be using something like GitHub - cc-d/open2fa: A 2FA CLI tool for generating 2FA codes using TOTP secrets, and an optional web ui enabling 2FA code generation from any device to generate a code on the command line and feed that to the auth test?