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

Fetch challenge #614

Merged
merged 3 commits into from
Sep 6, 2024
Merged

Fetch challenge #614

merged 3 commits into from
Sep 6, 2024

Conversation

swansontec
Copy link
Contributor

@swansontec swansontec commented Sep 2, 2024

CHANGELOG

Does this branch warrant an entry to the CHANGELOG?

  • Yes
  • No

Dependencies

none

Description

none

@swansontec swansontec force-pushed the william/fetch-captcha branch from 412a96d to e41eb1f Compare September 4, 2024 18:10
/** Preemptively requests a CAPTCHA for account creation. */
readonly fetchChallenge: () => Promise<{
challengeId: string
/** If this is missing, the challenge is already solved. */
Copy link
Contributor

@Jon-edge Jon-edge Sep 4, 2024

Choose a reason for hiding this comment

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

Optional: An explicit status would make this more clear without having to read prop documentation. Or a more descriptive var name like unsolvedChallengeUri

Copy link
Contributor Author

@swansontec swansontec Sep 5, 2024

Choose a reason for hiding this comment

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

I had it that way originally, but changed it this way for type-safety. You literally can't show the challenge to a user if there is no URL - what would go in the modal?

@swansontec swansontec merged commit dc1991a into master Sep 6, 2024
2 checks passed
@swansontec swansontec deleted the william/fetch-captcha branch September 6, 2024 19:58
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.

2 participants