# `Countersign.Web.SigningLive`
[🔗](https://github.com/mkreyman/countersign/blob/v0.1.0/lib/countersign/web/signing_live.ex#L1)

The signing page, `<sign_path>/:token/review`, past the code and behind
`Countersign.Web.Admit`.

Steps:

  * `:consent`: the config's disclosure (`Countersign.Disclosure` by
    default), a box to tick, Continue, and "Sign on paper instead".
    Continuing calls `Countersign.Requests.consent/3`.
  * `:review`: the document, framed from `<sign_path>/:token/document`
    with a download link to the same URL, then the signature: the signer's
    name (prefilled, editable, 1-200 characters) and either a drawn
    signature (the config's `:signature_pad`, when given) or the name typed
    again. Sign calls `Countersign.Requests.sign/3` with the URL's token.
    Decline, with an optional reason, and "Sign on paper instead" end the
    request through `Countersign.Requests.decline/4`.
  * `:signed`, `:declined`: "<sender> has been told."; a signed page
    offers the copy at `<sign_path>/:token/copy`.
  * `:dead`: one sentence, nothing else.

Before the review step shows, `Countersign.Requests.review/2` checks the
document is the one that was sent; a changed one supersedes the request.
Nothing on the page names the client or the record beyond what the
document itself shows.

# `signer_ip`

```elixir
@spec signer_ip(Countersign.Config.t(), map(), map() | nil) :: String.t() | nil
```

The signer's IP the page records: the one the host's plug put in the
session under the config's `:client_ip_session_key`, else the socket's
peer address, which behind a proxy is the proxy's. A config with no key
always takes the peer.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
