DoctorMcKay/node-steamstore

checkWalletCode error

xetrics opened this issue · 1 comments

Hello, I am currently trying to use the checkWalletCode method. I am doing this inside my webSession event callback, from steam-user. The cookies appear to be correct, includes sessionid, steamLogin, steamLoginSecure.

            that._client.on("webSession", function (session_id, cookies) {
                console.log(cookies) // cookies appear fine
                that._cookies = cookies 
                that._store_client.setCookies = cookies // all i need?
                that._store_client.checkWalletCode("xxxx-xxxx-xxxx", (err, eresult, detail, redeemable, amount, currency) => {
                    console.log(err)
                })
            })

This callback is inside a promise within a class method, if that's relevant.

Was staring at it trying to find the issue forever and as soon as I post an issue I figure it out. Really dumb of me, setCookies is a method.