Skip to content

"Accessing npm using two-factor authentication" Guide's steps doesn't yield one-time password #1803

@Naviary2

Description

@Naviary2

I'm running into an issue while following this guide.

My goal is get npm working via the cli command line. Anytime I perform some action (for example trying to enable 2FA for auth-and-writes, or publishing a package, it asks me to "Enter one-time password:"

To my knowledge this is either a Security Key I made on my account on npmjs.com, or an authenticator app code--this of which I have no clue how to connect npm to my authenticator app in the first place and cannot find any resources.. As for the Security Key, when I follow step 4 in this guide "Click on Use security key and follow the browser specific steps to authenticate." this is what I see in my browser:

Image

Okay good so far! But after I click on "Use security key" it displays this message:

Image

This isn't what I was expecting. I was expecting to see my one-time password, which step 5 of the guide shows and asks me to copy:

Image

Thus, I am at an impasse. I cannot get past this terminal message to use npm on the command line:

Image

I am using Chrome on Mac. And I saved my Security Key via Keychain Access / Passwords mac app.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions