# `Attesto.CredentialResponse`
[🔗](https://github.com/XukuLLC/attesto/blob/v2.0.1/lib/attesto/credential_response.ex#L1)

OID4VCI Credential Response (`draft-ietf-oauth-openid4vci` §8.3).

Build the string-keyed response body returned by a credential endpoint. This
module is pure and conn-free; credential issuance is the caller's concern.

# `build`

```elixir
@spec build(
  term(),
  keyword()
) :: %{required(String.t()) =&gt; term()}
```

Build an immediate issuance response.

A bare credential value is wrapped in a one-element list. A list of values
is emitted in the same order, with each value under a `"credential"` key.

# `deferred`

```elixir
@spec deferred(
  term(),
  keyword()
) :: %{required(String.t()) =&gt; term()}
```

Build a deferred issuance response.

---

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