intershop-pwa
intershop-pwa copied to clipboard
refactor: throw error in case recaptcha token is empty
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