Jump to content
McKay Development

Recommended Posts

Posted (edited)

I'm looking to cache sessions on disk. I've tried simply storing the refreshToken after logging in and then 1) setting it when initializing LoginSession, 2) calling LoginSession:refreshAccessToken(). However, this yields EResult 15 AccessDenied. I've also tried storing cookies and adding them the the session._webClient.cookieJar, but same issue.

Am I doing something wrong or is this not supported?

Edit: Seems like the refresh token should be used to get a new steamLoginSecure cookie instead of getting a new access token. So I suppose all I need to do is store the refresh token, set it on the LoginSession instance, and call getWebCookies

Looks like this process is indeed correct: https://github.com/DoctorMcKay/node-steam-session/issues/11. And refreshing access tokens is just not a thing when using WebClient

Edited by timgfx
Posted
6 hours ago, timgfx said:

Edit: Seems like the refresh token should be used to get a new steamLoginSecure cookie instead of getting a new access token. So I suppose all I need to do is store the refresh token, set it on the LoginSession instance, and call getWebCookies

This is correct. Access tokens are only useful when using EAuthTokenPlatformType.MobileApp.

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...