recaptcha-module
recaptcha-module copied to clipboard
Warn if `<recaptcha />` component used with recaptcha v3
Hi,
It would be good if the plugin would warn in the console or break the build if the dev use a <recaptcha /> component when using recaptcha v3.
Otherwise we get ERROR for site owner: Invalid key type which is confusing and hard to debug.
Maybe something like this inside recaptcha.vue:
export default {
...
mounted() {
if(this.$.recaptcha.version === 3) {
console.warn('`<recaptcha />` component should only be used with v2')
}
}
}