{"action":"closed","issue":{"url":"https://api.github.com/repos/node-gh/gh/issues/347","labels_url":"https://api.github.com/repos/node-gh/gh/issues/347/labels{/name}","comments_url":"https://api.github.com/repos/node-gh/gh/issues/347/comments","events_url":"https://api.github.com/repos/node-gh/gh/issues/347/events","html_url":"https://github.com/node-gh/gh/issues/347","id":56969840,"number":347,"title":"Authentication  error?","user":{"login":"zbeekman","id":279612,"avatar_url":"https://avatars.githubusercontent.com/u/279612?v=3","gravatar_id":"","url":"https://api.github.com/users/zbeekman","html_url":"https://github.com/zbeekman","followers_url":"https://api.github.com/users/zbeekman/followers","following_url":"https://api.github.com/users/zbeekman/following{/other_user}","gists_url":"https://api.github.com/users/zbeekman/gists{/gist_id}","starred_url":"https://api.github.com/users/zbeekman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zbeekman/subscriptions","organizations_url":"https://api.github.com/users/zbeekman/orgs","repos_url":"https://api.github.com/users/zbeekman/repos","events_url":"https://api.github.com/users/zbeekman/events{/privacy}","received_events_url":"https://api.github.com/users/zbeekman/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-02-08T22:00:13Z","updated_at":"2015-02-19T22:23:53Z","closed_at":"2015-02-19T22:23:53Z","body":"I’m not sure why this is happening… maybe due to two factor authentication? Something else?\r\n```\r\n$ gh is -l\r\ngh First we need authorization to use GitHub's API. Login with your GitHub account.\r\n? Enter your GitHub user: zbeekman\r\n? Enter your GitHub password: ********\r\n? Enter your two-factor code: 783373\r\n\r\n/usr/local/lib/node_modules/gh/node_modules/inquirer/node_modules/rx/dist/rx.js:4586\r\n        throw e;\r\n              ^\r\nTypeError: Cannot set property 'X-GitHub-OTP' of undefined\r\n    at PromptUI.completed (/usr/local/lib/node_modules/gh/lib/cmds/user.js:179:45)\r\n    at PromptUI.onCompletion (/usr/local/lib/node_modules/gh/node_modules/inquirer/lib/ui/prompt.js:68:10)\r\n    at AnonymousObserver.Rx.AnonymousObserver.AnonymousObserver.completed (/usr/local/lib/node_modules/gh/node_modules/inquirer/node_modules/rx/dist/rx.js:1929:12)\r\n    at AnonymousObserver.Rx.internals.AbstractObserver.AbstractObserver.onCompleted (/usr/local/lib/node_modules/gh/node_modules/inquirer/node_modules/rx/dist/rx.js:1866:14)\r\n    at AutoDetachObserverPrototype.completed (/usr/local/lib/node_modules/gh/node_modules/inquirer/node_modules/rx/dist/rx.js:4604:23)\r\n    at AutoDetachObserver.Rx.internals.AbstractObserver.AbstractObserver.onCompleted (/usr/local/lib/node_modules/gh/node_modules/inquirer/node_modules/rx/dist/rx.js:1866:14)\r\n    at AnonymousObserver._onCompleted (/usr/local/lib/node_modules/gh/node_modules/inquirer/node_modules/rx/dist/rx.js:\r\n```\r\n\r\nHere is the install output:\r\n```\r\n$ sudo npm install -g gh\r\n\r\n> execSync@1.0.2 install /usr/local/lib/node_modules/gh/node_modules/copy-paste/node_modules/execSync\r\n> node install.js\r\n\r\n[execsync v1.0.2] Attempting to compile native extensions.\r\n[execSync v1.0.2] Native extension compilation successful!\r\n/usr/local/bin/gh -> /usr/local/lib/node_modules/gh/bin/gh.js\r\ngh@1.9.4 /usr/local/lib/node_modules/gh\r\n├── cli-log@0.0.8\r\n├── userhome@0.1.0\r\n├── truncate@1.0.4\r\n├── which@1.0.8\r\n├── open@0.0.5\r\n├── wordwrap@0.0.2\r\n├── async@0.9.0\r\n├── nopt@3.0.1 (abbrev@1.0.5)\r\n├── github@0.2.3\r\n├── update-notifier@0.2.2 (is-npm@1.0.0, string-length@1.0.0, chalk@0.5.1, semver-diff@2.0.0, latest-version@1.0.0, configstore@0.3.2)\r\n├── moment@2.9.0\r\n├── cli-color@0.3.2 (d@0.1.1, timers-ext@0.1.0, memoizee@0.3.8, es5-ext@0.10.6)\r\n├── handlebars@2.0.0 (optimist@0.3.7, uglify-js@2.3.6)\r\n├── inquirer@0.7.3 (ansi-regex@1.1.0, figures@1.3.5, mute-stream@0.0.4, through@2.3.6, readline2@0.1.1, chalk@0.5.1, lodash@2.4.1, rx@2.3.25)\r\n├── npm@2.1.18\r\n└── copy-paste@0.3.0 (execSync@1.0.2)\r\n```"}}