Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add platform type validation for refresh token #25

Conversation

Sadzurami
Copy link
Contributor

@Sadzurami Sadzurami commented Jul 27, 2023

Now we don't validate this part of refresh token.
That may have issues.

For example, if user accidentally pass EAuthTokenPlatformType.WebBrowser for LoginSession constructor, then provide refresh token from Client and then call getWebCookies() - SteamSession will think that provided token is really SteamWeb token and tries to get cookies from web-endpoints, in result refresh token will be canceled by Steam backend (#22).

Better will be updating platform type, instead of throwing error, but it will cause updating transport, which defining in constructor and you may not want to change this.

If you will accept this PR, i suggest to bump version to 1.3.0, because throwing error here may contain breaking changes for some projects.

@DoctorMcKay DoctorMcKay merged commit d69d982 into DoctorMcKay:master Aug 11, 2023
9 checks passed
@Sadzurami Sadzurami deleted the feat/add-platform-type-validation-for-refresh-token branch September 29, 2023 11:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants