{"action":"created","issue":{"url":"https://api.github.com/repos/DoctorMcKay/node-steam-user/issues/37","labels_url":"https://api.github.com/repos/DoctorMcKay/node-steam-user/issues/37/labels{/name}","comments_url":"https://api.github.com/repos/DoctorMcKay/node-steam-user/issues/37/comments","events_url":"https://api.github.com/repos/DoctorMcKay/node-steam-user/issues/37/events","html_url":"https://github.com/DoctorMcKay/node-steam-user/issues/37","id":122530392,"number":37,"title":"EnableTwoFactor Error: Cannot read property 'toBuffer' of null","user":{"login":"Krash-ua","id":13116368,"avatar_url":"https://avatars.githubusercontent.com/u/13116368?v=3","gravatar_id":"","url":"https://api.github.com/users/Krash-ua","html_url":"https://github.com/Krash-ua","followers_url":"https://api.github.com/users/Krash-ua/followers","following_url":"https://api.github.com/users/Krash-ua/following{/other_user}","gists_url":"https://api.github.com/users/Krash-ua/gists{/gist_id}","starred_url":"https://api.github.com/users/Krash-ua/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Krash-ua/subscriptions","organizations_url":"https://api.github.com/users/Krash-ua/orgs","repos_url":"https://api.github.com/users/Krash-ua/repos","events_url":"https://api.github.com/users/Krash-ua/events{/privacy}","received_events_url":"https://api.github.com/users/Krash-ua/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/DoctorMcKay/node-steam-user/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-16T15:33:07Z","updated_at":"2015-12-16T15:37:32Z","closed_at":"2015-12-16T15:37:32Z","body":"Hi guys. I am trying to use EnableTwoFactor function and receiving the following error\r\n\r\nnode_modules/steam-user/components/twofactor.js:26\r\n            callback(body.status, body.shared_secret.toBuffer(), body.revocation_code);\r\n                                                    ^\r\n\r\nTypeError: Cannot read property 'toBuffer' of null\r\n\r\nThe code is typical :\r\n```javascript\r\nvar client = new SteamUser();\r\nclient.logOn({\r\n    accountName: config.username,\r\n    password: config.password\r\n});\r\n\r\nclient.on('loggedOn', function (details) {\r\n    console.info(\"Logged into Steam as \" + client.steamID.getSteam3RenderedID());\r\n    client.enableTwoFactor(function(status) {\r\n       console.log(status);\r\n    });\r\n});\r\n```\r\n\r\nI have seen https://github.com/DoctorMcKay/node-steam-user/issues/11 but havent found an answer there. My email is validated. I have taken a look into variable body in enableTwoFactor.\r\nIt returns:\r\n```javascript\r\n{ \r\nshared_secret: null,\r\n  serial_number: null,\r\n  revocation_code: null,\r\n  uri: null,\r\n  server_time: null,\r\n  account_name: null,\r\n  token_gid: null,\r\n  identity_secret: null,\r\n  secret_1: null,\r\n  status: 29\r\n }\r\n```\r\n\r\nCould you please give me an advice what can be possibly wrong with my code?\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/DoctorMcKay/node-steam-user/issues/comments/165146687","html_url":"https://github.com/DoctorMcKay/node-steam-user/issues/37#issuecomment-165146687","issue_url":"https://api.github.com/repos/DoctorMcKay/node-steam-user/issues/37","id":165146687,"user":{"login":"DoctorMcKay","id":1538723,"avatar_url":"https://avatars.githubusercontent.com/u/1538723?v=3","gravatar_id":"","url":"https://api.github.com/users/DoctorMcKay","html_url":"https://github.com/DoctorMcKay","followers_url":"https://api.github.com/users/DoctorMcKay/followers","following_url":"https://api.github.com/users/DoctorMcKay/following{/other_user}","gists_url":"https://api.github.com/users/DoctorMcKay/gists{/gist_id}","starred_url":"https://api.github.com/users/DoctorMcKay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DoctorMcKay/subscriptions","organizations_url":"https://api.github.com/users/DoctorMcKay/orgs","repos_url":"https://api.github.com/users/DoctorMcKay/repos","events_url":"https://api.github.com/users/DoctorMcKay/events{/privacy}","received_events_url":"https://api.github.com/users/DoctorMcKay/received_events","type":"User","site_admin":false},"created_at":"2015-12-16T15:37:32Z","updated_at":"2015-12-16T15:37:32Z","body":"Firstly, this crash was fixed some time ago. You should update.\r\n\r\nSecondly, 29 = DuplicateRequest, which means that you already have 2FA enabled."}}