UntitledUser Posted June 1, 2023 Report Posted June 1, 2023 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
4049_1572836826 Posted June 1, 2023 Report Posted June 1, 2023 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
UntitledUser Posted June 1, 2023 Author Report Posted June 1, 2023 (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, 2023 by UntitledUser Quote
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.