plug_mishka_auth v0.0.2 MishkaAuth.Helper.Captcha View Source

Link to this section Summary

Link to this section Types

Specs

provider() :: atom()

Specs

remoteip() :: String.t()

Specs

response() :: String.t()

Link to this section Functions

Link to this function

verify(atom, google_params)

View Source

Specs

verify(provider(), %{remoteip: remoteip(), response: response()}) ::
  {:error, :google_response, :unexpected_error_or_not_active}
  | {:error, :captcha_verify, :google, any()}
  | {:ok, :captcha_verify, :google, map()}