DEV Community

loading...

Discussion on: Selenium Testing - How to sign in to Two-factor authentication?

Collapse
derekantrican profile image
Derek Antrican

facebook.com/help/270942386330392?...

It works similarly to setting up 2-factor for a Google Account. If you select "Code Generator" they present you with a 2-factor QR code.

In order to get the secret for my Google Account 2-factor, I scanned the Google Account QR code with a QR code scanner and stripped out the secret parameter. This secret worked for your steps in your article.

For Facebook, I tried to do the same thing, but it's not generating the right 2-factor codes, which leads me to believe the secret or the steps or something else is wrong.

Was wondering if you have any insight