Skip to content

Issue When Using Two-factor Authentication #54

@alexfinnarn

Description

@alexfinnarn

Describe the bug

I kept having issues providing my GitHub credentials even though I knew my username and password were correct. Then, it dawned on me that I should try to login via the web interface to see what happened. I forgot that I had 2FA set up. Once I disabled 2FA, I didn't have any issues.

I didn't go back to fully check that 2FA is always an issue, but right after I disabled it, my import process went smoothly.

As far as resolving this (if it is an issue), I think adding a note to the documentation makes sense.

To Reproduce
Steps to reproduce the behavior:

  1. Enable 2FA on your GitHub account.
  2. Try to run the npx command.
  3. See an authentication failure after entering the URL of the GitHub repository.

Screenshots

Screen Shot 2019-06-23 at 7 48 56 PM

Solution
If you use 2FA, you need to give a token instead of your password, that's just how GitHub works: https://help.github.com/en/articles/accessing-github-using-two-factor-authentication#using-two-factor-authentication-with-the-command-line

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions