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

Allow DuplicateRequest in SendSteamGuardCodeAsync #1212

Merged
merged 1 commit into from
Apr 4, 2023

Conversation

xPaw
Copy link
Member

@xPaw xPaw commented Apr 3, 2023

DuplicateRequest happens when accepting the prompt in the mobile app, and then trying to send guard code here, do not throw on it here because authentication will succeed on the next poll.

This makes it easier for users because even if 2FA code is asked, Steam will send a confirmation prompt to the app regardless.

cc @JustArchi

@yaakov-h
Copy link
Member

yaakov-h commented Apr 3, 2023

Seems reasonable to me.

What happens if authentication doesn't succeed on the next poll, but does something else (e.g. fails)? Does that just get handed as normal?

@xPaw
Copy link
Member Author

xPaw commented Apr 3, 2023

Polling will throw for any eresult that isn't OK, yeah.

Copy link
Contributor

@JustArchi JustArchi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need some way to indicate that the next poll should finish the flow with either success or error, we might have a problem if Steam tells us duplicate for any stupid reason and then will continue giving us "wait" in polls.

Copy link
Contributor

@JustArchi JustArchi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

obraz

@xPaw xPaw merged commit fe2a34e into master Apr 4, 2023
@xPaw xPaw deleted the send-guard-duplicate-request branch April 4, 2023 08:50
@xPaw xPaw added this to the 2.5.0 milestone Oct 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants