UntitledUser Posted June 1 Report Share Posted June 1 I am trying to put cookies that i got from webSession event in browser but they don’t authorize me there, however they work if i use setCookies in node steamcommunity. Quote Link to comment Share on other sites More sharing options...
4049_1572836826 Posted June 1 Report Share Posted June 1 Browser script: document.cookie = 'steamLoginSecure=xxxxxxxxxxxxxxxxxxxxxxx; expires=Fri, 02 Jun 2023 10:14:12 GMT; path=/'; Node script with steam-session log(`Generating cookie: ${token}`, 'info', 'steam-session', true, id) const session = new LoginSession(EAuthTokenPlatformType.WebBrowser) session.refreshToken = token const cookie = await session.getWebCookies() log(`Cookie: ${cookie}`, 'info', 'steam-session', true, id) UntitledUser 1 Quote Link to comment Share on other sites More sharing options...
UntitledUser Posted June 1 Author Report Share Posted June 1 (edited) 5 hours ago, 4049_1572836826 said: Browser script: document.cookie = 'steamLoginSecure=xxxxxxxxxxxxxxxxxxxxxxx; expires=Fri, 02 Jun 2023 10:14:12 GMT; path=/'; Node script with steam-session log(`Generating cookie: ${token}`, 'info', 'steam-session', true, id) const session = new LoginSession(EAuthTokenPlatformType.WebBrowser) session.refreshToken = token const cookie = await session.getWebCookies() log(`Cookie: ${cookie}`, 'info', 'steam-session', true, id) It works. Thanks !!! Edited June 1 by UntitledUser Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.