Skip to content

fix: update demosite to reflect error messages in client #9867

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

Merged
merged 13 commits into from
May 3, 2023

Conversation

Sita04
Copy link
Collaborator

@Sita04 Sita04 commented May 2, 2023

  1. Update returned response from backend to include reason for "bad" actions.
  2. Update client messaging to display the bad action messages.
  3. Update client response to fetch 'Invalid token' value based on the reason returned.

@Sita04 Sita04 requested review from a team as code owners May 2, 2023 17:11
@product-auto-label product-auto-label bot added samples Issues that are directly related to samples. api: recaptchaenterprise Issues related to the reCAPTCHA API. asset: flagship DEE Asset tagging - Flagship. labels May 2, 2023
const demoElement = document.querySelector("recaptcha-demo");
demoElement.setAttribute("score", score?.data?.score);
demoElement.setAttribute("verdict", score?.data?.verdict);
demoElement.setAttribute("verdict", score?.data?.label);
Copy link
Contributor

Choose a reason for hiding this comment

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

would it be better to rename "verdict" to "label" here and elsewhere?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes, was hesitant because I didn't know how Rhy set it up. But I've tried to update the label.
Will ask Rhy for a review.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@morewry Could you PTAL at this change?

@Sita04 Sita04 requested a review from faube May 3, 2023 14:55
@engelke engelke merged commit 7c9b968 into main May 3, 2023
@engelke engelke deleted the demosite-client-error-msg branch May 3, 2023 17:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: recaptchaenterprise Issues related to the reCAPTCHA API. asset: flagship DEE Asset tagging - Flagship. samples Issues that are directly related to samples.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants