1
0
mirror of synced 2026-01-06 06:02:35 -05:00
Files
docs/data/reusables/two_fa/enable-totp-app-method.md
2024-02-20 10:30:40 +00:00

1.9 KiB

{%- ifversion fpt or ghec or ghes > 3.8 %}

  1. Under "Scan the QR code", do one of the following:

    • Scan the QR code with your mobile device's app. After scanning, the app displays a six-digit code that you can enter on {% data variables.product.product_name %}.
    • If you can't scan the QR code, click setup key to see a code, the TOTP secret, that you can manually enter in your TOTP app instead.

    Screenshot of the "Setup authenticator app" section of the 2FA settings. A link, labeled "setup key", is highlighted in orange.

  2. The TOTP application saves your account on {% data variables.location.product_location %} and generates a new authentication code every few seconds. On {% data variables.product.product_name %}, type the code into the field under "Verify the code from the app". {%- else %}

  3. Under "Two-factor authentication", select Set up using an app and click Continue.

  4. Under "Authentication verification", do one of the following:

    • Scan the QR code with your mobile device's app. After scanning, the app displays a six-digit code that you can enter on {% data variables.product.product_name %}.
    • If you can't scan the QR code, click enter this text code to see a code that you can manually enter in your TOTP app instead.

    Screenshot of the 2FA enablement page. A link with the text "enter this text code" is highlighted in orange.

  5. The TOTP application saves your account on {% data variables.location.product_location %} and generates a new authentication code every few seconds. On {% data variables.product.product_name %}, type the code into the field under "Enter the six-digit code from the application". {%- endif %}

{% ifversion ghes < 3.9 %}{% data reusables.two_fa.test_2fa_immediately %}{% endif %}