reCAPTCHA v3 Connector
Use Descope's reCAPTCHA v3 connector to secure your authentication flow. reCAPTCHA v3 is Google's free service for bot protection and risk scoring. It helps distinguish legitimate users from automated traffic during authentication.
This guide shows how to configure the connector, add the widget to a screen, and run the reCAPTCHA assessment in your flow.
Note
Descope also supports reCAPTCHA Enterprise. To learn more, see the reCAPTCHA Enterprise guide.
How reCAPTCHA v3 works
reCAPTCHA v3 scores each request in the background, without showing the user a challenge. The check runs in two parts:
- In the browser: The reCAPTCHA v3 component on your screen gets a token from Google. When the user submits the screen, the component sends the token to Descope. The token carries no score.
- On the server: The reCAPTCHA v3 / Verify action sends the token and your secret key to Google's siteverify API. Google returns a score from 0.0 (likely a bot) to 1.0 (likely a human).
The Verify action returns Google's response unchanged and adds a bot flag.
Configure reCAPTCHA v3 connector
Navigate to the Connectors page in the Descope Console and select reCAPTCHA v3 to create a new reCAPTCHA v3 connector.
Configuring the connector

- Connector name: Provide a unique name for your connector. This assists in distinguishing it, especially when multiple connectors are derived from the same template.
- Connector description (optional): Briefly explain the purpose of this connector.
- Site Key: The site key from Google. For details, see reCAPTCHA overview.
- Secret Key: The secret key from Google. For details, see reCAPTCHA overview.
- Override Assessment (For Testing) (optional): Allows for automated testing by overriding the assessment model with a custom score. Not intended for production environments, only for testing.
- Assessment Score (0-1) (optional): When configured, the reCAPTCHA action returns this score without assessing the request. The score ranges from 0 to 1, where 1 indicates human interaction and 0 indicates bot activity. Learn more here.
reCAPTCHA v3 vs Enterprise
reCAPTCHA v3 is Google's free tier offering that provides basic bot detection and risk scoring. For more advanced features including SMS fraud detection, enhanced analytics, and better accuracy, consider upgrading to reCAPTCHA Enterprise. View a detailed comparison here.
Testing the connector
Before creating your connector, verify that the connector's configuration works. Once configured, simply click on "Test" and check the Test Results panel. Confirm, then click "Create."
Implementing the reCAPTCHA connector in your flow
1. Select or Create a flow
- Access your Dashboard -> Flows.
- Select an existing flow or create a new one.
2. Add the reCAPTCHA connector to the flow screen
In the editor, select a screen (typically the first screen), then add the reCAPTCHA V3 component from the Risk section. Drag it onto the screen and click Done.

Display options
Select the component on the screen to choose what it displays using the Variant setting:
| Variant | What the user sees |
|---|---|
| Text (default) | The reCAPTCHA notice text, including links to Google's Privacy Policy and Terms of Service. |
| Image | An image you upload, with separate versions for light and dark themes. |
| Hidden | Nothing. The component is not rendered to the user. |
The Style, Color, Alignment, and Fill container settings apply to the Text variant only. The Image variant offers an image upload instead, and the Hidden variant has no display settings.
Note
The Variant setting only controls what appears on the screen. reCAPTCHA still loads and generates a token regardless of which variant you pick, so the Verify step described below returns risk scores as usual — including when the variant is Hidden.
In the screen builder, a component set to Hidden appears as a small dashed placeholder so you can still select it and change the variant back. That placeholder is only visible in the builder, never to your users.
3. Add the reCAPTCHA connector to the flow
Warning
Since the reCAPTCHA connector runs in the browser, the connector steps need to be added after at least one screen or action component in the flow.
In the flow editor, click the create (+) button, select Connector, and choose reCAPTCHA v3 / Verify.
Place the connector after the screen where you added the reCAPTCHA widget, then click Save.

When a user runs through your authentication flow, the reCAPTCHA connector runs automatically and returns a risk analysis.
4. Check the result in your flow
The Verify action stores Google's response under the Context Key you set on the action, for example connectors.recaptchaResult. Add a condition after the action to check these values:
| Key | Description |
|---|---|
success | true when Google accepted the token. false when the token is invalid, expired, or already used. |
score | Google's score, from 0.0 (likely a bot) to 1.0 (likely a human). Missing when success is false. |
action | The action name that the component sent with the token. |
hostname | The site where the user got the token. |
error-codes | Google's reasons for a failed check. |
riskInfo.botDetected | true when score is below 0.5. reCAPTCHA v3 always uses 0.5 as its bot threshold. |
Check success before score
The Verify action doesn't fail when Google rejects the token. Check success before score, so that a request with an invalid token doesn't pass your score check.
A common pattern uses three outcomes instead of pass or fail:
| Condition | What the flow does |
|---|---|
success is false | Ends the flow, or requires OTP. |
score is 0.7 or higher | Continues to sign-in. |
score is 0.3 or higher, and lower than 0.7 | Requires a one-time code by email or SMS. |
score is lower than 0.3 | Ends the flow. |
These thresholds are examples. Google suggests starting at 0.5 and adjusting based on your traffic. Scores in testing or soon after setup can differ from production, because reCAPTCHA learns from your site's real traffic. See Interpreting the score.
Note
Descope also writes Google's score to riskInfo.riskScore, but you shouldn't check riskInfo.riskScore in flows that use fraud connectors. Check score from the reCAPTCHA v3 / Verify action instead, for example connectors.recaptchaResult.score. See Fraud & Attack Protection.