# `OpenPayments.Types.ContinuationToken`
[🔗](https://github.com/interledger/open-payments-elixir/blob/v1.0.0/lib/open_payments/types/continuation_token.ex#L1)

The credential in a grant response's `continue.access_token` field.

The pinned schema requires a string `value` and permits additional JSON data,
retained in `extensions`. Value spelling is preserved without applying the
outgoing request header's token68 validation. This credential is typed separately
from issued resource access tokens and makes no network requests.

Inspection omits values and extensions. Explicit map/JSON exports include the
token. Errors retain safe field names. Validate manually modified structs with
`validate/1`; `to_map/1` converts shape without validating it.

# `t`

```elixir
@type t() :: %OpenPayments.Types.ContinuationToken{
  extensions: %{optional(String.t()) =&gt; term()},
  value: String.t()
}
```

# `from_map`

```elixir
@spec from_map(map()) :: {:ok, t()} | {:error, OpenPayments.Error.t()}
```

Decodes a continuation credential and preserves permitted extension data.

# `to_map`

```elixir
@spec to_map(t()) :: map()
```

Converts to protocol fields, including the token value, without validating.

# `validate`

```elixir
@spec validate(t()) :: :ok | {:error, OpenPayments.Error.t()}
```

Validates token and JSON extension fields without retaining values in errors.

---

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