4049_1572836826 Posted October 19, 2023 Report Share Posted October 19, 2023 (edited) Hi, I got my hands on a new refreshroken which brings back store.steam ... but when I put it into steam-user it error me on validation Error: This refreshToken is not valid for logging in to the Steam client at /Users/xxxxxxx/node_modules/.pnpm/[email protected]/node_modules/steam-user/components/08-logon.js:133:16 at process.processTicksAndRejections (node:internal/process/task_queues:77:11) { tokenAudiences: [ 'web', 'renew', 'derive' ] } Here is JWT decode { iss: 'steam', sub: '765611995xxxxx', aud: [ 'web', 'renew', 'derive' ], exp: 1700350xxx, nbf: 1689078xxx, iat: 1697718xxx, jti: '0D52_xxxx_xxx', oat: 1697xxxx, per: 0, ip_subject: 'xx.xx.xx.xx', ip_confirmer: 'xx.xx.xx.xx' } Im, try with steam-session - EAuthTokenPlatformType.WebBrowser- renewRefreshToken() got: Error: AccessDenied Edited October 19, 2023 by 4049_1572836826 Quote Link to comment Share on other sites More sharing options...
4049_1572836826 Posted October 19, 2023 Author Report Share Posted October 19, 2023 And, Im try use session.getWebCookies(); with this JWT ... and cookies is working with steam websites Quote Link to comment Share on other sites More sharing options...
Dr. McKay Posted October 20, 2023 Report Share Posted October 20, 2023 11 hours ago, 4049_1572836826 said: Hi, I got my hands on a new refreshroken which brings back store.steam ... but when I put it into steam-user it error me on validation This is expected behavior. You can only use a token generated with EAuthTokenPlatformType.SteamClient with steam-user. 11 hours ago, 4049_1572836826 said: Im, try with steam-session - EAuthTokenPlatformType.WebBrowser- renewRefreshToken() got: Error: AccessDenied This is expected behavior. renewRefreshToken() does not work for EAuthTokenPlatformType.WebBrowser. Quote Link to comment Share on other sites More sharing options...
4049_1572836826 Posted October 20, 2023 Author Report Share Posted October 20, 2023 and is there any way to use it with steam-user ? with steam community it works but I need use it with steam-user steamcommunity solutions : const session = new LoginSession(EAuthTokenPlatformType.WebBrowser) session.refreshToken = refreshToken const cookies = await session.getWebCookies() steamcommunity.setCookies(cookies) return new Promise((resolve) => { steamcommunity.loggedIn((err, loggedIn) => { resolve(steamcommunity.steamID.getSteamID64()) }) }) Quote Link to comment Share on other sites More sharing options...
Dr. McKay Posted October 20, 2023 Report Share Posted October 20, 2023 What do you mean by "use it with steam-user"? Quote Link to comment Share on other sites More sharing options...
4049_1572836826 Posted October 20, 2023 Author Report Share Posted October 20, 2023 Loggin to steam-user with this WebBrowser type refreshtoken. Quote Link to comment Share on other sites More sharing options...
Dr. McKay Posted October 21, 2023 Report Share Posted October 21, 2023 You can't. 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.