intershop-pwa icon indicating copy to clipboard operation
intershop-pwa copied to clipboard

refactor: throw error in case recaptcha token is empty

Open skoch-intershop opened this issue 1 year ago • 1 comments

PR Type

[ ] Bugfix [ ] Feature [ ] Code style update (formatting, local variables) [x] Refactoring (no functional changes, no API changes) [ ] Build-related changes [ ] CI-related changes [ ] Documentation content changes [ ] Application / infrastructure changes [ ] Other:

What Is the Current Behavior?

In case that the customer uses an invalid recaptcha sitekey, the recatcha token creation failed and the token is empty. This leads to an incorrect response for all request which are protected by captcha v3.

Issue Number: Closes 91171

What Is the New Behavior?

In case the recaptcha token is empty an TS error is thrown.

Does this PR Introduce a Breaking Change?

[ ] Yes [ x] No

AB#91188

skoch-intershop avatar Nov 16 '23 12:11 skoch-intershop