Currently you are viewing v3 document of vue-recaptcha which is still in development

Enterprise reCAPTCHA Support

Enterprise version support is experimental and may be changed in the future.

Simply change your plugin import to the following:

import VueRecaptchaPlugin from 'vue-recaptcha/enterprise'

const app = createApp(App)
app.use(VueRecaptchaPlugin)

Usage without unhead

If you are not using unhead and want to use the enterprise version, you can use the following code:

import VueRecaptchaPlugin from 'vue-recaptcha/enterprise-head'

const app = createApp(App)
app.use(VueRecaptchaPlugin)

Nuxt

If you are using Nuxt, you can set the recaptcha.enterprise option to true:

defineNuxtConfig({
  modules: ['vue-recaptcha/nuxt'],
  runtimeConfig: {
    public: {
      recaptcha: {
        v2SiteKey: 'YOUR_V2_SITEKEY_HERE',
        v3SiteKey: 'YOUR_V3_SITEKEY_HERE',
      },
    },
  },
  recaptcha: {
    enterprise: true,
  },
})
Table of Contents