Steam-Auto-Queue icon indicating copy to clipboard operation
Steam-Auto-Queue copied to clipboard

Login with refreshTokens

Open SENPAY98K opened this issue 1 year ago • 7 comments

Hey, i think it is better to login with credentials at first time and save refresh tokens, after that you can use refresh tokens to generate cookies without limitation that steamcommunity has.

SENPAY98K avatar Jun 28 '24 14:06 SENPAY98K

node-steamcommunity which I used for login does not support refresh token. Maybe I need to rewrite whole login process with node-steam-session to use refresh token.

ZWhitey avatar Jun 28 '24 17:06 ZWhitey

better not use steam-sessions because the cookies generated are limited to country ip, so you would rather use steam-user for its availability everywhere.

SENPAY98K avatar Jun 30 '24 14:06 SENPAY98K

also you can add new function for login with refresh token and option to choose between, so you wont have to rewrite all bot

SENPAY98K avatar Jun 30 '24 14:06 SENPAY98K

I have added refresh token login, you can try this branch. If everything is fine, I will release new version.

ZWhitey avatar Jul 07 '24 03:07 ZWhitey

Okay

SENPAY98K avatar Jul 07 '24 05:07 SENPAY98K

I have added refresh token login, you can try this branch. If everything is fine, I will release new version.

It worked, but i noticed that 10 seconds delay which is needed only at first time logins (using account credentials). Also you could prefix log data (date - time) if you want.

SENPAY98K avatar Jul 07 '24 07:07 SENPAY98K

I cant find anything to handle fail logins (in case token expired/changed).

SENPAY98K avatar Jul 07 '24 07:07 SENPAY98K