CaptchaEx.verify

You're seeing just the function verify, go back to CaptchaEx module for more information.
Link to this function

verify(response, options \\ [])

View Source

Specs

verify(String.t(), Keyword.t()) ::
  {:ok, CaptchaEx.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} = CaptchaEx.verify("response_string")