Open SENPAY98K opened 2 months ago
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.
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.
also you can add new function for login with refresh token and option to choose between, so you wont have to rewrite all bot
I have added refresh token login, you can try this branch. If everything is fine, I will release new version.
Okay
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.
I cant find anything to handle fail logins (in case token expired/changed).
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.