researcher Posted September 28, 2024 Report Posted September 28, 2024 (edited) Hi there. Is there any way to somehow save login info after once logging into Steam account to use for logging again with node-steam-user? For example like Steam works on browser, you login once and you are logged in for very long time. Like generating some logging info, saving it for later, then passing it to node-steam-user instance and you are logged in without actually authenticating from scratch again. I want to login instantly, like with minimal delay to be able to use node-steam-user normally. Edited September 28, 2024 by researcher Quote
Dr. McKay Posted September 29, 2024 Report Posted September 29, 2024 Yes, this is what refresh tokens are for. Quote
researcher Posted September 30, 2024 Author Report Posted September 30, 2024 Great. Also, can I use the same refresh tokens to log in with two different instances of steam-user? Quote
Dr. McKay Posted September 30, 2024 Report Posted September 30, 2024 I'm not sure, I haven't tried it. Quote
researcher Posted October 1, 2024 Author Report Posted October 1, 2024 Not related but interested. Can I somehow check with your libraries how long I've been friends with someone? I know that I can see that information in the trade window. Quote
Dr. McKay Posted October 1, 2024 Report Posted October 1, 2024 You can just use ISteamUset/GetFriendList for that. Each friend has a unix time friend_since property. Quote
researcher Posted October 1, 2024 Author Report Posted October 1, 2024 Should I use normal fetch for this or is there any functionality available that does apiKey embedding under the hood? Thanks. Quote
Dr. McKay Posted October 1, 2024 Report Posted October 1, 2024 steam-user doesn't do anything with API keys. Quote
researcher Posted October 1, 2024 Author Report Posted October 1, 2024 Just checked the GetFriendList endpoint out and turns out having friends list on public is a requirement there. I wanted to check my friends only, seems like providing apiKey doesn't authenticate me so I still can't see my own friends 'cause I have it on private. Is there any other way to get friend_since? Quote
researcher Posted October 24, 2024 Author Report Posted October 24, 2024 Hi there. Is there any simple way to get steam web session? like cookies and session with hitting some web endpoints? The thing is I can't use JS (and node-steam-user) for some reason and only thing I want is just to get the web session. I was wondering if there is any way by communicating to Steam through the web instead of with protocol buffers. Thanks. 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.