Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Ask HN: How do you handle 2FA during development?
2 points by thijsheijden on Dec 14, 2022 | hide | past | favorite | 1 comment
Mainly concerning things like automated testing locally, and in CI/CD pipelines.


Good question. I’d expand on this and ask a bonus question of, how do you write tests for your 2fa implementation code? Same thing for third party auth (sign in via GitHub/Google, etc); you can’t spam them every time you run your test suite, but is mocking responses from them really a wise move when testing authentication?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: