You are viewing a section of Superface that will be deprecated in Q4 2023. Until then, you can continue to use it as you have before but we recommend that you migrate to our latest version soon. For more details visit superface.ai/docs/migrate.

captcha/verify-token

captcha/verify-token@1.0.0
1 provider

Validates the CAPTCHA provider response from the website's backend.

Input
The user response token to be verified, provided by CAPTCHA provider's client-side integration on your site.
Unique key identifying a repeated request in case of connection issue.
The user's IP address.
The site key you expect to see.
Result
Timestamp of the challenge.
Hostname of the site where the CAPTCHA was solved.

1.Choose a provider

2.Use ValidateCaptchaResponse with mock in your code

Below instructions are for our Node.js SDK. Use OneService for other languages.
npm i @superfaceai/one-sdk

Structure details

Input (object)

response
The user response token to be verified, provided by CAPTCHA provider's client-side integration on your site.
idempotencyKey
Unique key identifying a repeated request in case of connection issue.
remoteIp
The user's IP address.
siteKey
The site key you expect to see.

Example

Result (object)

challengeTimeStamp
Timestamp of the challenge.
hostname
Hostname of the site where the CAPTCHA was solved.

Example

Implementation details

Provider
mock
Use case
ValidateCaptchaResponse
Author
@superface
Source
Verified