# Two-factor authentication for developer accounts

Canonical: [Two-factor authentication for developer accounts](https://contextingo.com/blog/two-factor-authentication-for-developer-accounts)

Locale: en

Purpose: Turn on two-factor authentication for your code host, cloud, e-mail and registries. Prefer passkeys or security keys over SMS. A short checklist.

Content updated: 2026-10-26

Source revision: content.ts 2026-10-26

Maintenance owner: the Contextingo site owner

[Topic map](https://contextingo.com/llm/topics/blog.md) · [Complete scoped map](https://contextingo.com/sitemap.md)

An attacker with a developer’s password can read code, push changes and steal keys. Two-factor authentication (2FA) means a stolen password alone is not enough.

## Accounts to protect first

- E-mail, because it resets everything else.
- The code host (GitHub, GitLab).
- Cloud and hosting consoles.
- Package registries you publish to.
- Password manager and domain registrar.
- The accounts of tools your agents connect to.

## Methods, strongest first

1. Passkeys and hardware security keys (FIDO2/WebAuthn), which resist phishing.
2. An authenticator app that produces one-time codes.
3. SMS codes, only if nothing else is offered. They can be intercepted or redirected.

## Do

- Keep recovery codes somewhere safe and offline.
- Register two methods, for example two security keys.
- Require 2FA for every member of your organisation on the code host.

## In Contextingo

Staff must enable 2FA before they can use the admin console, and each person connects their agents with their own personal key. See the [security page](/security).

## Questions

### Is an authenticator app good enough?

It is much better than a password alone. Security keys and passkeys are stronger against phishing.

### What if I lose my device?

Use your recovery codes or your second registered method.
