Jump to content
McKay Development

Recommended Posts

Posted

Steam has updated their login flow, and now it seems logging in doesn't work as intended. When using "community.login" and using the session id and cookies given by that to send a httpRequestPost now throws an error.

 

Steam returns: You must be logged in to perform that action.

 

Is there any fix for this?

Posted

Sir, looks like the domain checkout.steampowered.com cannot use the steamLoginSecure cookie for a long time since yesterday's update. Is there any way to keep the login status for this domain?

Posted (edited)
2 hours ago, Dr. McKay said:

This is a known issue, see: https://github.com/DoctorMcKay/node-steamcommunity/issues/321

community.login isn't going to work until I can finish the v4 rewrite. Until then, you can either use steam-session or steam-user to get login cookies for use with steamcommunity.

I tried using steam-user and httpRequestPost still returns the same error as before?

I'm using the cookies and session id from steam-user in the headers I am passing

 

                        const user = new SteamUser({
                            httpProxy: proxyString
                        });

			user.logOn({
                            accountName: String(logOnOptions.accountName),
                            password: String(logOnOptions.password)
                        });

			user.on('loggedOn', function() {
                        	user.on('webSession', (sessionID, cookies) => {
                            		community.httpRequestPost('https://steamcommunity.com/actions/ReportAbuse/', {
                                    		form: { sessionid: sessionID, json: 1, abuseID: steam_id, eAbuseType: 14, abuseDescription: 					hijackQuotes[randomIndex], ingameAppID: '' },
                                    		headers: { Cookie: cookies, Host: 'steamcommunity.com', Origin: 'https://steamcommunity.com' },
                                    		json: true
                                }, (err, response, body) => {
                                   //Here body returns: You must be logged in to perform that action
                                   //And err returns "HTTP error 401"
                                }, "steamcommunity");
                            });
                        });

 

Edited by gud
Posted
3 hours ago, Terry said:

Sir, looks like the domain checkout.steampowered.com cannot use the steamLoginSecure cookie for a long time since yesterday's update. Is there any way to keep the login status for this domain?

Works fine for me.

1 hour ago, gud said:

I tried using steam-user and httpRequestPost still returns the same error as before?

I'm using the cookies and session id from steam-user in the headers I am passing

 

                        const user = new SteamUser({
                            httpProxy: proxyString
                        });

			user.logOn({
                            accountName: String(logOnOptions.accountName),
                            password: String(logOnOptions.password)
                        });

			user.on('loggedOn', function() {
                        	user.on('webSession', (sessionID, cookies) => {
                            		community.httpRequestPost('https://steamcommunity.com/actions/ReportAbuse/', {
                                    		form: { sessionid: sessionID, json: 1, abuseID: steam_id, eAbuseType: 14, abuseDescription: 					hijackQuotes[randomIndex], ingameAppID: '' },
                                    		headers: { Cookie: cookies, Host: 'steamcommunity.com', Origin: 'https://steamcommunity.com' },
                                    		json: true
                                }, (err, response, body) => {
                                   //Here body returns: You must be logged in to perform that action
                                   //And err returns "HTTP error 401"
                                }, "steamcommunity");
                            });
                        });

 

Why are you doing all that and not just calling community.setCookies()?

Posted

 

I tried to use cookie login method (maybe 2 days ago logged in) to login .

image.jpeg.be043f030e708c537cc95961faaf5a8a.jpegA

then I tried below code. Event 'loggedOn' tried succes , but event 'webSession' cannot be emitted. any ideas?

WeChat100b3c60b3a1100ec1d5b5f1b7f7d15d.jpg.f1507594c175397cf22137c2492e7e5c.jpg

Posted

It doesn't work to get the refreshed cookie steamLoginSecure for checkout.steampowered.com .  If logged in by username , password and sharedsecret. it works.

But it worked for both methods 2 days ago. 

Env

node v20.8.1,  npm 10.1.0

image.png.c76fd7065631995c702e8877cc6a550a.png

Posted (edited)
On 10/20/2023 at 6:56 AM, Dr. McKay said:

Works fine for me.

Why are you doing all that and not just calling community.setCookies()?

Yea, I tried using setCookies but it made no differance

Versions im using from NPM:

steam-user 5.0.1

steamcommunity 3.47.0

Node: v16.20.0

NPM: 8.19.4

Edited by gud
Posted
19 hours ago, Terry said:

It doesn't work to get the refreshed cookie steamLoginSecure for checkout.steampowered.com .  If logged in by username , password and sharedsecret. it works.

But it worked for both methods 2 days ago. 

Env

node v20.8.1,  npm 10.1.0

image.png.c76fd7065631995c702e8877cc6a550a.png

Works fine for me.

17 hours ago, gud said:

...

I'm not going to provide support for automated abuse reporting.

Posted
6 hours ago, Dr. McKay said:

Works fine for me.

I'm not going to provide support for automated abuse reporting.

We ban cheaters that have bought accounts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...