Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Working with two-factor authentication #450

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Working with two-factor authentication #450

wants to merge 1 commit into from

Commits on May 9, 2017

  1. Working with two-factor authentication

    As mentioned in github API:
    ```
    In addition to the Basic Authentication credentials, you must send the user's authentication code (i.e., one-time password) in the X-GitHub-OTP header.
    ```
    And we will be able to use it like this:
    
    ```
    const github = new GitHub({
        username: 'ddimitrioglo',
        password: 'xxxxxxxxxxxx',
        otp: '888999' // <= One-Time-Password
    });
    
    let me = github.getUser();
    
    me.listRepos((err, repos) => {
        console.log(repos);
    });
    ```
    Dmitri Dimitrioglo authored May 9, 2017
    Configuration menu
    Copy the full SHA
    8d32e26 View commit details
    Browse the repository at this point in the history