node-gh / gh

(DEPRECATED) GitHub CLI made with NodeJS. Use the official https://cli.github.com/ instead.
http://nodegh.io
Other
1.71k stars 217 forks source link

authentication issues #561

Closed artivilla closed 6 years ago

artivilla commented 6 years ago

Attempt: Trying to view github issues by running gh is in a private respository.

Results: Looked through some other issues and I'm still having this issue:

? Enter your two-factor code 883593
{ [Error: {"message":"Must specify two-factor authentication OTP code.","documentation_url":"https://developer.github.com/v3/auth#working-with-two-factor-authentication"}]
  message: '{"message":"Must specify two-factor authentication OTP code.","documentation_url":"https://developer.github.com/v3/auth#working-with-two-factor-authentication"}',
  code: 401 }

mac OSX : 10.12.6 (16G1212) gh@1.12.14

protoEvangelion commented 6 years ago

Hey @artivilla I will look into this. In the meantime can you run again with --verbose and post the output please? Thanks 😄

artivilla commented 6 years ago

Actually, I noticed the token was going to my sms instead. All good, I'll try this out and reopen if I run into any issues.

protoEvangelion commented 6 years ago

Thanks for the update @artivilla