Warn if `<recaptcha />` component used with recaptcha v3
mrleblanc101 opened this issue · 1 comments
mrleblanc101 commented
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.
mrleblanc101 commented
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')
}
}
}