Stillcode › Two-factor authentication › GitHub

Two-factor authentication on GitHub

GitHub publishes software of its own for this and also takes an open authenticator code. What choosing either one commits you to, and what happens when the phone holding those codes is gone.

What GitHub supports

These are the second factors GitHub offers on github.com. Which ones you see can depend on your plan and your country; what each of the seven actually costs you is set out once.

MethodWhat it is
Authenticator app (TOTP)SupportedComputed on your own device; nothing is sent to produce it.
Hardware security keySupportedA physical key you tap; the one option phishing does not beat.
The service’s own appSupportedSoftware this service publishes; it works, and only here.
SMS text messageSupportedTexted to your number, so your carrier is part of the lock.

GitHub's own caveat, as recorded in the directory: Hardware tokens must have a backup method, either SMS or software token.

Data sourced from 2FA Directory by 2factorauth. Snapshot 2026-09-24.

What that particular mix means

GitHub offers both SMS and an authenticator app. They are not equivalent — a texted code depends on your mobile carrier and survives no longer than control of your phone number, while a generated code never travels. If both are enabled, the account is only as strong as the weaker one, because an attacker picks.

A hardware security key is also accepted. It is stronger than any code, because a code can be typed into a convincing fake page and a key cannot. The usual arrangement is a key as the primary factor and an authenticator app as the backup that fits in a pocket.

GitHub also publishes its own app for this — GitHub Mobile. It works, and it works only here: an account secured that way needs that software on whatever device you are holding.

Where this page's facts come from

Of the fifty services on this site, nine publish software of their own as a second factor, and GitHub is one of them. No other service here accepts exactly this combination of factors. Among the five services filed under developer, every one accepts a hardware security key.

The directory files GitHub under developer, records four of the seven second factors it tracks, and points at instructions published at docs.github.com/en/github/authenticating-to-github/securing-your-account-with-two-factor-authentication-2fa/configuring-two-factor-authentication. A second document on the same host, …/recovering-your-account-if-you-lose-your-2fa-credentials, covers not being able to complete sign-in.

Switching on an authenticator app

GitHub's own instructions: GitHub — two-factor authentication — linked, never copied, because a stale menu path here locks people out.

If the phone holding your GitHub codes is gone

GitHub publishes a page for exactly this situation: what to do when you cannot complete two-factor sign-in. ⭐ Read it before you need it — the steps almost always require something you have to set up in advance.

Background: how the codes work · what still works when the phone is gone.

Other services in the same place

GitLab Bitbucket Atlassian Cloudflare

Where Stillcode fits

An iPhone, iPad and Mac authenticator for these codes that makes no network calls at all. What is free and what Pro adds. Get it on the App Store