# `Bobbin.Host`
[🔗](https://github.com/heddlehq/Bobbin/blob/main/lib/bobbin/host.ex#L1)

What the app that runs the nodes gives them: Heddle keeps the credentials of each
workspace. Templates are filled by `Bobbin.Template`, the same in Heddle and in an
integration's tests.

The host names its module in config:

    config :bobbin, :host, MyApp.BobbinHost

`Bobbin.Service` calls it, so an integration never depends on the host.

# `credential`

```elixir
@callback credential(
  workspace_id :: term(),
  name :: String.t() | nil,
  kind :: String.t(),
  opts :: keyword()
) :: {:ok, map()} | {:error, String.t()}
```

The values of the credential called `name` of `kind`, as `workspace_id` sees it.
`refresh: true` in `opts` renews an OAuth token first.

---

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