# `AttestoPhoenix.Verifier.PresentationResponse`
[🔗](https://github.com/XukuLLC/attesto_phoenix/blob/v5.0.0/lib/attesto_phoenix/verifier.ex#L33)

Normalized OID4VP response: plaintext `direct_post`, or the shared JWE
envelope for `direct_post.jwt` and `dc_api.jwt`.

# `t`

```elixir
@type t() ::
  %AttestoPhoenix.Verifier.PresentationResponse{
    mode: :encrypted,
    response: String.t(),
    state: nil,
    vp_token: nil
  }
  | %AttestoPhoenix.Verifier.PresentationResponse{
      mode: :plaintext,
      response: nil,
      state: String.t(),
      vp_token: map()
    }
```

# `from_params`

```elixir
@spec from_params(term()) :: {:ok, t()} | {:error, :malformed}
```

Normalize a direct-post request body map into a typed
`%PresentationResponse{}` struct.

---

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