nan4k7 Posted July 18, 2023 Report Share Posted July 18, 2023 I'm using steamLoginSecure and setcookies to resume a session created via the browser... The problem I have is that eventually this cookie gets invalidated (as stated on the cookies guide) but I dont get to understand how to refresh it's value... Is this possible with steamcomunnity or any other project? I need to start a session with valid steamloginsecure and keep the value updated whenever it changes... Quote Link to comment Share on other sites More sharing options...
Dr. McKay Posted July 18, 2023 Report Share Posted July 18, 2023 Given only a steamLoginSecure cookie, no, it's not possible to renew it when it expires. You would need to get the refresh token out of the steamRefresh_steam cookie that's set on login.steampowered.com, and use the steam-session module to exchange it for a new steamLoginSecure cookie. Quote Link to comment Share on other sites More sharing options...
nan4k7 Posted July 18, 2023 Author Report Share Posted July 18, 2023 (edited) 10 hours ago, Dr. McKay said: Given only a steamLoginSecure cookie, no, it's not possible to renew it when it expires. You would need to get the refresh token out of the steamRefresh_steam cookie that's set on login.steampowered.com, and use the steam-session module to exchange it for a new steamLoginSecure cookie. Can you please give me more info on how to capture the refresh cookie? I could never get it EDIT: Nevermind! Found it inspecting network requests on browser Edited July 18, 2023 by nan4k7 Quote Link to comment Share on other sites More sharing options...
4049_1572836826 Posted July 18, 2023 Report Share Posted July 18, 2023 Use steam-session > login > store refresh token (exp ~200d) > and regenerate cookie when you need it with same module > setup with setcookies in the browser nan4k7 1 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.