Home / ADD-AUTHENTICATOR-TO-2FA

Add Authenticator App to npm 2FA

You have passkey enabled, but for publishing you need TOTP (authenticator app).

Option 1: Add Authenticator as Additional Method

  • Go to: https://www.npmjs.com/settings/cdr420/account
  • Scroll to "Two-Factor Authentication" section
  • Look for "Add authentication method" or "Manage 2FA methods"
  • Choose "Authenticator app" or "TOTP"
  • It will show QR code
  • Scan with your phone authenticator app
  • Enter verification code
  • Now you'll have BOTH:

    • Passkey (for logging in)
    • Authenticator app (for publishing)

    Option 2: Try Publishing with Passkey

    Some newer npm versions accept passkey for OTP. Try:

    cd packages/core
    npm publish

    If it prompts for biometric/passkey instead of code, use that!

    Option 3: Disable Passkey, Use Authenticator Only

    If you can't add authenticator alongside passkey:

  • Go to: https://www.npmjs.com/settings/cdr420/account
  • Disable/remove passkey 2FA
  • Re-enable 2FA but choose "Authenticator app"
  • Scan QR code with phone
  • Now use authenticator codes for publishing

  • Quick Test

    In your terminal, try publishing:

    cd packages/core
    npm publish

    See what it prompts for:

    • If it asks for passkey → use fingerprint/Face ID
    • If it asks for OTP → you need authenticator app
    Let me know what happens!