{"action":"created","issue":{"url":"https://api.github.com/repos/steam-forward/node-steam-forum/issues/57","labels_url":"https://api.github.com/repos/steam-forward/node-steam-forum/issues/57/labels{/name}","comments_url":"https://api.github.com/repos/steam-forward/node-steam-forum/issues/57/comments","events_url":"https://api.github.com/repos/steam-forward/node-steam-forum/issues/57/events","html_url":"https://github.com/steam-forward/node-steam-forum/issues/57","id":99231390,"number":57,"title":"Can't use old sentry files","user":{"login":"Zexuz","id":12451322,"avatar_url":"https://avatars.githubusercontent.com/u/12451322?v=3","gravatar_id":"","url":"https://api.github.com/users/Zexuz","html_url":"https://github.com/Zexuz","followers_url":"https://api.github.com/users/Zexuz/followers","following_url":"https://api.github.com/users/Zexuz/following{/other_user}","gists_url":"https://api.github.com/users/Zexuz/gists{/gist_id}","starred_url":"https://api.github.com/users/Zexuz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zexuz/subscriptions","organizations_url":"https://api.github.com/users/Zexuz/orgs","repos_url":"https://api.github.com/users/Zexuz/repos","events_url":"https://api.github.com/users/Zexuz/events{/privacy}","received_events_url":"https://api.github.com/users/Zexuz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-08-05T15:27:58Z","updated_at":"2015-08-05T17:39:07Z","closed_at":null,"body":"Hi, I updated to version 2.0.1 of steam-tradeoffer andby doing so I had to update steam too.\r\n\r\nAfter doing so and logging `steamClient.on('logOnResponse', function(logonResp) {` I get err 63 and I need to input a authCode. But I can't do new sentryfiles and be tradebanned for 7 days. Can/how do I reuse my old files? I'm running a copy of [storeHouse]( https://github.com/Alex7Kom/node-steam-tradeoffers/blob/master/examples/storehouse.js) but leaving my code below any way.\r\n\r\n```javascript\r\nvar fs = require('fs')`\r\n`var crypto = require('crypto');\r\n\r\nvar Steam = require('steam');\r\nvar SteamWebLogOn = require('steam-weblogon');\r\nvar getSteamAPIKey = require('steam-web-api-key');\r\nvar SteamTradeOffers = require('steam-tradeoffers'); // change to 'steam-tradeoffers' if not running from the examples subdirectory`\r\n\r\nvar admin = ''; // put your steamid here so the bot can accept your offers\r\n\r\nvar logOnOptions = {\r\n    account_name: 'accNane',\r\n    password: 'accPw'\r\n};\r\n\r\nvar authCode = ''; // code received by email\r\n\r\ntry {\r\n    logOnOptions.sha_sentryfile = getSHA1(fs.readFileSync('accName'));\r\n} catch (e) {\r\n    if (authCode !== '') {\r\n        logOnOptions.auth_code = authCode;\r\n    }\r\n}\r\n\r\n// if we've saved a server list, use it\r\nif (fs.existsSync('servers')) {\r\n    Steam.servers = JSON.parse(fs.readFileSync('servers'));\r\n}\r\n\r\nvar steamClient = new Steam.SteamClient();\r\nvar steamUser = new Steam.SteamUser(steamClient);\r\nvar steamFriends = new Steam.SteamFriends(steamClient);\r\nvar steamWebLogOn = new SteamWebLogOn(steamClient, steamUser);\r\nvar offers = new SteamTradeOffers();\r\n\r\nsteamClient.connect();\r\nsteamClient.on('connected', function() {\r\n    steamUser.logOn(logOnOptions);\r\n});\r\n\r\nsteamClient.on('logOnResponse', function(logonResp) {\r\n    if (logonResp.eresult === Steam.EResult.OK) {\r\n        console.log('Logged in!');\r\n        steamFriends.setPersonaState(Steam.EPersonaState.Online);\r\n\r\n        steamWebLogOn.webLogOn(function(sessionID, newCookie) {\r\n            getSteamAPIKey({\r\n                sessionID: sessionID,\r\n                webCookie: newCookie\r\n            }, function(err, APIKey) {\r\n                offers.setup({\r\n                    sessionID: sessionID,\r\n                    webCookie: newCookie,\r\n                    APIKey: APIKey\r\n                });\r\n            });\r\n        });\r\n    }else{\r\n        console.log(logonResp);\r\n    }\r\n});\r\n\r\nsteamClient.on('servers', function(servers) {\r\n    fs.writeFile('servers', JSON.stringify(servers));\r\n});\r\n\r\nsteamUser.on('updateMachineAuth', function(sentry, callback) {\r\n    fs.writeFileSync('accName', sentry.bytes);\r\n    callback({ sha_file: getSHA1(sentry.bytes) });\r\n});\r\n\r\nfunction getSHA1(bytes) {\r\n  var shasum = crypto.createHash('sha1');\r\n  shasum.end(bytes);\r\n  return shasum.read();\r\n}\r\n\r\n/*\r\nHandelOffers...\r\n*/\r\n´``"},"comment":{"url":"https://api.github.com/repos/steam-forward/node-steam-forum/issues/comments/128086424","html_url":"https://github.com/steam-forward/node-steam-forum/issues/57#issuecomment-128086424","issue_url":"https://api.github.com/repos/steam-forward/node-steam-forum/issues/57","id":128086424,"user":{"login":"Zexuz","id":12451322,"avatar_url":"https://avatars.githubusercontent.com/u/12451322?v=3","gravatar_id":"","url":"https://api.github.com/users/Zexuz","html_url":"https://github.com/Zexuz","followers_url":"https://api.github.com/users/Zexuz/followers","following_url":"https://api.github.com/users/Zexuz/following{/other_user}","gists_url":"https://api.github.com/users/Zexuz/gists{/gist_id}","starred_url":"https://api.github.com/users/Zexuz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zexuz/subscriptions","organizations_url":"https://api.github.com/users/Zexuz/orgs","repos_url":"https://api.github.com/users/Zexuz/repos","events_url":"https://api.github.com/users/Zexuz/events{/privacy}","received_events_url":"https://api.github.com/users/Zexuz/received_events","type":"User","site_admin":false},"created_at":"2015-08-05T17:39:07Z","updated_at":"2015-08-05T17:39:07Z","body":"I understand what It does, not quite why.\r\nWhy should i hash it and send it whit the callback if I don't do it here?\r\n```logOnOptions.sha_sentryfile = getSHA1(fs.readFileSync(sentryFile));```\r\n\r\nIs it gonna overwrite my sentry file whit a new one that is hashed so i need to change how i read my sentry on start? Yes I find it VERY confusing and [this](https://github.com/seishun/node-steam/tree/master/lib/handlers/user#events) doesn't make much sense to me neither."}}