researcher Posted September 28 Report Share Posted September 28 (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 by researcher Quote Link to comment Share on other sites More sharing options...
Dr. McKay Posted September 29 Report Share Posted September 29 Yes, this is what refresh tokens are for. Quote Link to comment Share on other sites More sharing options...
researcher Posted September 30 Author Report Share Posted September 30 Great. Also, can I use the same refresh tokens to log in with two different instances of steam-user? Quote Link to comment Share on other sites More sharing options...
Dr. McKay Posted September 30 Report Share Posted September 30 I'm not sure, I haven't tried it. Quote Link to comment Share on other sites More sharing options...
researcher Posted October 1 Author Report Share Posted October 1 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 Link to comment Share on other sites More sharing options...
Dr. McKay Posted October 1 Report Share Posted October 1 You can just use ISteamUset/GetFriendList for that. Each friend has a unix time friend_since property. Quote Link to comment Share on other sites More sharing options...
researcher Posted October 1 Author Report Share Posted October 1 Should I use normal fetch for this or is there any functionality available that does apiKey embedding under the hood? Thanks. Quote Link to comment Share on other sites More sharing options...
Dr. McKay Posted October 1 Report Share Posted October 1 steam-user doesn't do anything with API keys. Quote Link to comment Share on other sites More sharing options...
researcher Posted October 1 Author Report Share Posted October 1 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 Link to comment Share on other sites More sharing options...
Dr. McKay Posted October 1 Report Share Posted October 1 Not as far as I'm aware. 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.