Product
Introducing SSO
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
invisible-grecaptcha
Advanced tools
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 42 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.
Product
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.