When I set up two-factor authentication with an authenticator app

Set up an authenticator app for the signed-in account on its Manage pages, as a person does: the link of the two-factor page ("Add authenticator app", or "Set up authenticator app"), the key the page shows typed into the app (the step works the code out from it), the code verified. The page then says "Your authenticator app has been verified." and shows the recovery codes. The key is kept for the rest of the scenario: a login of the account types its codes. Turn it off again before the scenario ends ("I turn two-factor authentication off"); a scenario that does not is put back after it.

Examples

When I set up two-factor authentication with an authenticator app
When we set up two-factor authentication with an authenticator app
And I set up two-factor authentication with an authenticator app
When I set up two-factor authentication with an authenticator app
Then we set up two-factor authentication with an authenticator app

Pattern

When(/^(I |we )*set up two-factor authentication with an authenticator app$/, …)

Part of @webship-js/aspnet-core-steps (github.com/webship/aspnet-core-steps), a step pack for Webship-js 2.0.x.