Releases: TeddiO/GoSteamAuth
Releases · TeddiO/GoSteamAuth
v1.0.6
What's Changed
No outward API changes have been made and so users of this package should be able to upgrade without issue.
- Remove regex usage & regex library
- Added
STEAM_AUTH_HTTP_TIMEOUTwith a default value of15seconds to give better control around the outbound lifecycle for requests to Steam. - Replaced manual query string construction with idiomatic use of
url.Valuesand string methods, simplifying the logic and reducing potential bugs. - Introduced a
httpDoerinterface and a globalhttpClientvariable, allowing for dependency injection and easier testing of HTTP interactions. - Improved error handling and validation in
ValidateResponse, including stricter checks on claimed identity and SteamID extraction. - Added a new test file
gosteamauth_test.gowith afakeHTTPClientto mock HTTP responses, providing thorough unit tests forValidateResponse, including success, failure, network error, timeout, and identity mismatch scenarios. - Add GitHub Actions CI job for running said tests.
Full Changelog: v1.0.5...v1.0.6
v1.0.5
Update source-code comments / docs
Minor bump to update the inline code comments to be reflective of their nature.