Google reCAPTCHA
🤖 Simple and easy Google reCAPTCHA integration with Nuxt.js
Setup
- Add
@nuxtjs/recaptcha
dependency withyarn
ornpm
into your project - Add
@nuxtjs/recaptcha
tomodules
section ofnuxt.config.js
- Configure it:
modules: '@nuxtjs/recaptcha' /* reCAPTCHA options */
using top level options
modules: '@nuxtjs/recaptcha' recaptcha: /* reCAPTCHA options */
Configuration
// ... recaptcha: hideBadge: Boolean // Hide badge element (v3 & v2 via size=invisible) language: String // Recaptcha language (v2) siteKey: String // Site key for requests version: Number // Version size: String // Size: 'compact', 'normal', 'invisible' (v2) // ...
Info Hiding Badges
You're allowed to hide the badge (i.e. for v3 and v2 invisible), as long as you include the recaptcha branding in the user flow.
For example:
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.
Development
- Clone this repository
- Install dependencies using
yarn install
ornpm install
- Start development server using
npm run dev
License
Copyright (c) mvrlin mvrlin@pm.me