Recaptcha.verify
You're seeing just the function
verify
, go back to Recaptcha module for more information.
Specs
verify(String.t(), Keyword.t()) :: {:ok, Recaptcha.Response.t()} | {:error, [atom()]}
Verifies a reCAPTCHA response string.
Options
:timeout
- the timeout for the request (defaults to 5000ms):secret
- the secret key used by recaptcha (defaults to the secret provided in application config):remote_ip
- the IP address of the user (optional and not set by default)
Examples
{:ok, api_response} = Recaptcha.verify("response_string")