Authors: bunopnu.
Simplifies the process of verifying CAPTCHA responses.
Erlang library that provides easy-to-use functions for interacting with Cloudflare Turnstile, reCAPTCHA and hCaptcha.api_request_data() = {Secret::unicode:chardata(), Response::unicode:chardata()} | {Secret::unicode:chardata(), Response::unicode:chardata(), IpAddress::unicode:chardata()}
Representing the data required for making a request.
captcha_services() = turnstile | recaptcha | hcaptcha
Representing the available CAPTCHA services.
request_response() = {ok, map()} | {error, term()}
Representing the response from a CAPTCHA service request.
request/2 | Sends a request to the specified CAPTCHA service and returns the response. |
start/0 | Starts the application along with its dependent applications. |
verify/2 | Verifies the CAPTCHA response from the specified service and returns a boolean result. |
request(Service, Data) -> Result
Sends a request to the specified CAPTCHA service and returns the response.
start() -> ok | {error, term()}
Starts the application along with its dependent applications.
verify(Service, Data) -> Result
Verifies the CAPTCHA response from the specified service and returns a boolean result.
Generated by EDoc