AurityLab / vue-recaptcha-v3

A simple and easy to use reCAPTCHA (v3 only) library for Vue.
Apache License 2.0
236 stars 25 forks source link

Documentation on how to access instance from Vue 3 Composition #681

Open vessi-devs opened 1 year ago

vessi-devs commented 1 year ago

In the project's README.md (https://github.com/AurityLab/vue-recaptcha-v3#access-recaptcha-v3-instance) it's not explained how to get the instance when Vue 3 Composition is used. We need to hide the Recaptcha badge. We'll be glad if you kindly document how to accomplish that. Thanks.

charleston10 commented 1 year ago
const app = createApp(App).use(router).use(pinia)

VueReCaptcha.install(app, {
  siteKey: import.meta.env.VITE_APP_RECAPTCHA_SITE_KEY,
  loaderOptions: {
    useRecaptchaNet: true,
    autoHideBadge: false
  }
})

app.mount('#app')