Security News
OpenJS: “XZ Utils Cyberattack Likely Not an Isolated Incident”
OpenJS is warning of social engineering takeovers targeting open source projects after receiving a credible attempt on the foundation.
invisible-grecaptcha
Advanced tools
Weekly downloads
Readme
Invisible reCAPTCHA integration
This project uses node and npm. Go check them out if you don't have them locally installed.
$ npm install --save invisible-grecaptcha
The UMD build is also available on jsdelivr:
<script src="https://cdn.jsdelivr.net/npm/invisible-grecaptcha/dist/index.min.js"></script>
You can find the library on window.invisibleGrecaptcha
.
import {
execute,
destroy,
} from 'invisible-grecaptcha'
const token = await execute('RECAPTCHA_SITE_KEY')
destroy()
Creates an invisible reCAPTCHA instance, dynamically loading Google's library if necessary, and then returns a user response token. This is a client-side step, and the token must be sent to the server side for verification as a separate step. Tokens are single use and can be verified only once.
Parameters
sitekey
string Your recaptcha sitekey. You can get one here: https://www.google.com/recaptcha/admin.options
Object? The options to create an invisible reCAPTCHA. (optional, default {}
)
options.locale
string Language of the captcha. See available language codes https://developers.google.com/recaptcha/docs/language. Auto-detects the user's language if unspecified. (optional, default en
)options.position
string Position the reCAPTCHA badge. Values: bottomright, bottomleft and inline. (optional, default bottomright
)options.baseUrl
(optional, default 'https://www.google.com'
)Returns string
Destroy the instance of an invisible grecaptcha.
See the contributing file.
FAQs
Invisible reCAPTCHA integration
The npm package invisible-grecaptcha receives a total of 31 weekly downloads. As such, invisible-grecaptcha popularity was classified as not popular.
We found that invisible-grecaptcha demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
OpenJS is warning of social engineering takeovers targeting open source projects after receiving a credible attempt on the foundation.
Company News
Come meet the Socket team at BSidesSF and RSA! We're sponsoring several fun networking events and we would love to see you there.
Security News
OSI is starting a conversation aimed at removing the excuse of the SaaS loophole for companies navigating licensing and the complexities of doing business with open source.