Guide de configuration du 2FA
Comment activer 2FA pour votre compte GitHub
5 juin 2026 mis à jour
L'authentification à deux facteurs (2FA) protège votre compte GitHub même en cas de fuite de votre mot de passe. Suivez les étapes ci-dessous pour générer des codes de vérification GitHub avec le Authenticator App sur votre iPhone, iPad ou Mac.
Download Authenticator App
Download Authenticator App from the App Store on your iPhone, iPad or Mac. It's free and no sign-up is required.
Open GitHub security settings
Click your profile photo → “Settings” → “Password and authentication”.
Enable two-factor authentication
Click “Enable two-factor authentication” and choose “Set up using an app”. GitHub will display a QR code.
Scan the QR code with Authenticator App
Open Authenticator App, tap the + button and scan the QR code shown by GitHub. If you can't scan it, choose the manual option on GitHub and type the setup key into the app instead.
Enter the 6-digit verification code
Type the 6-digit code from Authenticator App back into GitHub to confirm the setup. The code refreshes every 30 seconds.
Save your backup codes
If GitHub offers backup or recovery codes, download or write them down and store them somewhere safe. They let you regain access if you ever lose your device.
Obtenez le Authenticator App
Scannez le code QR depuis GitHub et générez des codes sécurisés à usage unique sur iPhone, iPad et Mac. Gratuit, aucun compte requis.
Télécharger l'application