Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Can't login with 2FA/OTP #35

Open
searls opened this issue Aug 27, 2016 · 2 comments
Open

Can't login with 2FA/OTP #35

searls opened this issue Aug 27, 2016 · 2 comments
Labels

Comments

@searls
Copy link

searls commented Aug 27, 2016

Logging in doesn't work for me, unfortunately:

Your GitHub OTP/2FA Code (optional): 985184
{ [Error: Must specify two-factor authentication OTP code.]
  data: 
   { message: 'Must specify two-factor authentication OTP code.',
     documentation_url: 'https://developer.github.com/v3/auth#working-with-two-factor-authentication' } }
/Users/justin/.nodenv/versions/4.4.1/lib/node_modules/offline-issues/src/index.js:17
  headers['Authorization'] = 'token ' + token.token
                                             ^

TypeError: Cannot read property 'token' of undefined
    at module.exports (/Users/justin/.nodenv/versions/4.4.1/lib/node_modules/offline-issues/src/index.js:17:46)
    at /Users/justin/.nodenv/versions/4.4.1/lib/node_modules/offline-issues/src/cli.js:35:3
    at afterCreateAuth (/Users/justin/.nodenv/versions/4.4.1/lib/node_modules/offline-issues/node_modules/ghauth/ghauth.js:155:16)
    at BufferList.afterCreateAuthResponse [as _callback] (/Users/justin/.nodenv/versions/4.4.1/lib/node_modules/offline-issues/node_modules/ghauth/ghauth.js:42:14)
    at BufferList.end (/Users/justin/.nodenv/versions/4.4.1/lib/node_modules/offline-issues/node_modules/ghauth/node_modules/bl/bl.js:98:10)
    at DuplexWrapper.onend (/Users/justin/.nodenv/versions/4.4.1/lib/node_modules/offline-issues/node_modules/ghauth/node_modules/hyperquest/node_modules/duplexer2/node_modules/readable-stream/lib/_stream_readable.js:537:10)
    at DuplexWrapper.g (events.js:260:16)
    at emitNone (events.js:72:20)
    at DuplexWrapper.emit (events.js:166:7)
    at /Users/justin/.nodenv/versions/4.4.1/lib/node_modules/offline-issues/node_modules/ghauth/node_modules/hyperquest/node_modules/duplexer2/node_modules/readable-stream/lib/_stream_readable.js:934:16
@jlord jlord added the bug label Aug 29, 2016
@techgithub345
Copy link

techgithub345 commented Nov 2, 2016

You must specify the two-factor authentication OTP code for that to work.
It says on the code

@Jolg42
Copy link

Jolg42 commented Jan 16, 2018

Working for me with latest version. I think this issue can be closed now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants