Exact loopback callback capture for interactive OAuth flows.
Summary
Functions
Returns a specification to start this module under a supervisor.
Types
@type callback_result() :: {:ok, %{code: String.t(), request_uri: String.t(), state: String.t() | nil}} | {:error, Pristine.OAuth2.Error.t()}
@type redirect_target() :: %{ redirect_uri: String.t(), host: String.t(), ip: :inet.ip_address(), path: String.t(), port: pos_integer(), scheme: String.t() }
Functions
@spec await(t(), timeout()) :: callback_result()
Returns a specification to start this module under a supervisor.
See Supervisor.
@spec start(String.t(), keyword()) :: {:ok, t()} | {:error, Pristine.OAuth2.Error.t()}
@spec stop(t()) :: :ok