-
Posts
2912 -
Joined
-
Last visited
Contact Methods
-
Website URL
https://www.doctormckay.com
Profile Information
-
Gender
Not Telling
Recent Profile Visitors
6187 profile views
Dr. McKay's Achievements
-
Confusion with the login system and the web sessions
Dr. McKay replied to BolverBlitz's topic in node-steam-user
You're logging in to an anonymous user account (that's what the a means in [a:1:x]), which implies that your accountName is undefined. -
https://github.com/DoctorMcKay/node-steam-user/blob/master/components/cdn.js#L268
-
https://github.com/DoctorMcKay/node-globaloffensive/blob/master/index.js#L277-L290 This code will probably work.
-
That code looks like it should work. It's possible that Steam has changed something relating to how avatars are uploaded. I'll look into this when I get a chance, but it probably won't be soon.
-
Defining the belonging of an APIkey to the Steam ID
Dr. McKay replied to tranbom202's topic in General
No, and you really shouldn't be asking users for their account credentials. API keys are credentials. -
No, you can only use a 2FA code once. If you've already used a code, then you'll need to wait for the next code to be generated. You shouldn't be logging into SteamCommunity with an account name and password if you're already using SteamUser. In the webSession event, just call community.setCookies(cookies); That's all you need.
-
Either your secret is wrong, your clock is wrong, or you attempted to reuse a 2FA code.
-
If you get an error event indicating you disconnected due to LoggedInElsewhere, just log back in. It won't cause any problems unless you try to launch a game again before you get a playingState notification indicating that you aren't blocked.
-
You should probably move your gamesPlayed call to the playingState event, and only call it if blocked is false.
-
Not really. Logging into an account tends to invalidate the session cookies of other logins.