Jump to content
McKay Development

jaymie

Member
  • Posts

    2
  • Joined

  • Last visited

Posts posted by jaymie

  1. On 10/11/2022 at 6:04 PM, 3urobeat said:

    Hey, I'm implementing the new `steam-session` login flow at the moment and I'm storing the retrieved `refreshToken` in a database so the user doesn't need to input a Steam Guard code on every start. 

    If I understand correctly `steam-user` did basically the same thing (I do not understand the difference between access_token and refreshToken yet) by storing an access token in a sentry file. This token seems to be available at `client._logOnDetails.access_token` when logged in.

    So my question:
    Is it possible to retrieve this token before being logged in so that I can transfer it to my new `steam-session` database?
    Otherwise everyone updating to the new version of my bot would need to type in the guard codes again for every account (which would also cause downtime since the automatic updater would update, restart the bot and then get stuck when trying to log in again with the new system as it would wait for a guard code input).

    My compatibility feature runs after the update but before logging in so I don't have access to the old steam-user client object.

     

    Also two more things I'm a little unsure about this new system, which I would like a second opinion on:
    Should I encrypt my refreshToken database somehow? It looks like you did that with the sentry .bin files but how could I go about that myself? The login data supplied by the user is unencrypted anyway so I'm not sure if it would even make a difference.

    Is there any possibility that a refreshToken can be "renewed" (while still valid) without asking for a steam guard code or is the user forced to go through the steam guard code process at least every 200 days for each account? I'm asking because this would get really annoying when using my bot with many accounts.

     

    Thank you in advance!

    sir, can you tell me how to use refresh_token to get new access_token, request /jwt/finalizelogin again?

  2. for example we can use start_assetid and count  to get a user full inventory assets

    the first assetid is 25264414658

    https://steamcommunity.com/inventory/76561198972875194/570/2/?l=schinese&start_assetid=0&count=10  this endpoint will return a property laset_asetid = 25291132130

    and then 

    https://steamcommunity.com/inventory/76561198972875194/570/2/?l=schinese&start_assetid=25291132130&count=10

     

    but when I got all assetIds to save my db, then I sort these assetids by desc or asc, I found steam return data not follow the desc or asc regular.

    any one know assetid sort regular in inventory?

     

    by the way, I found csgo inventory follow assetid desc regular

×
×
  • Create New...