Two-factor Authentication

Learn how to configure two-factor authentication for your Vercel account.

To add an additional layer of security to your Vercel account, you can enable two-factor authentication (2FA). This feature requires you to provide a second form of verification when logging in to your account. There are two methods available for 2FA on Vercel:

  • Authenticator App: Use an authenticator app like Google Authenticator to generate a time-based one-time password (TOTP).
  • Passkey: Authenticate using any WebAuthN compatible device, such as a security key or biometric key.
  1. Navigate to your account settings on Vercel
  2. Toggle the switch to enable 2FA
  3. Set up your 2FA methods
  4. Confirm your setup
  5. Save your recovery codes
Two-factor authentication settings.
Two-factor authentication settings.

Scan the QR code with your authenticator app or manually enter the provided key. Once added, enter the generated 6-digit code to verify your setup.

The time-based one-time password (TOTP) setup modal.
The time-based one-time password (TOTP) setup modal.

See the Login with passkeys for more information on setting up a security key or biometric key.

After setting up two-factor authentication (2FA), you will be prompted to save your recovery codes. Store these codes in a safe place, as they can be used to access your account if you lose access to your 2FA methods.

Each recovery code can only be used once, and you can generate a new set of codes at any time.

The recovery codes modal.
The recovery codes modal.
Last updated on April 4, 2025