Jump to content
McKay Development

Recommended Posts

Posted (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 by 4049_1572836826
Posted
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.

Posted

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())
  	})
  })

 

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...