@capgo/capacitor-recaptcha
Generate reCAPTCHA and reCAPTCHA Enterprise tokens on Web, Android, and iOS before sensitive backend requests.
Overview
Section titled “Overview”@capgo/capacitor-recaptcha loads Google reCAPTCHA on each Capacitor platform and returns a token for a named action.
Use it before sensitive requests such as login, signup, checkout, password reset, or abuse-prone form submissions. Send the token to your backend and create a reCAPTCHA assessment there.
Core Capabilities
Section titled “Core Capabilities”load- Loads and caches the platform reCAPTCHA client.execute- Runs reCAPTCHA for an action and returns a token.getPluginVersion- Returns the native implementation version marker.
Platform Support
Section titled “Platform Support”| Platform | Support |
|---|---|
| Web | reCAPTCHA v3 with api.js, or reCAPTCHA Enterprise with enterprise.js |
| Android | Google mobile reCAPTCHA SDK. Native regular reCAPTCHA v3 is not a separate mode; enterprise: false is rejected. |
| iOS | Google RecaptchaEnterprise SDK. Native regular reCAPTCHA v3 is not a separate mode; enterprise: false is rejected. |
Public API
Section titled “Public API”| Method | Description |
|---|---|
load | Loads and caches the reCAPTCHA client for the current platform. |
execute | Executes reCAPTCHA for an action and returns a token for backend assessment. |
getPluginVersion | Returns the platform implementation version marker. |
Source Of Truth
Section titled “Source Of Truth”This reference is synced from src/definitions.ts in capacitor-recaptcha.