DoctorMcKay / node-steam-session

Node.js module for authenticating with the Steam auth server. Allows for generating refresh tokens and web auth cookies for use with steam-user and other packages.
https://www.npmjs.com/package/steam-session
MIT License
112 stars 20 forks source link

Better webcookies handling #39

Closed Sadzurami closed 1 week ago

Sadzurami commented 7 months ago

Now we can return cookies for login.steampowered.com for EAuthTokenPlatformType.WebBrowser to match official behavior. Doing that we can automatically refresh cookies, without need to use LogginSession.getWebCookies() again. After steamLoginSecure expires, any request to steam redirects us to login.steampowered, which updates our cookies and redirects back. Just like browsers do.

Also, now sessionid sets properly and not conflicts with jar libs (due to lack of domain).