# `Medplum.Auth`
[🔗](https://github.com/CodeDuckers-LLC/medplum_elixir/blob/v0.3.0/lib/medplum/auth.ex#L1)

Internal helper that exchanges Medplum client credentials for an access token.

# `token`

```elixir
@spec token(Medplum.Client.t()) :: {:ok, String.t()} | {:error, Medplum.Error.t()}
```

Requests a bearer token for the given client using the client credentials grant.

---

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