# `ADK.Auth.InMemoryStore`
[🔗](https://github.com/zeroasterisk/adk-elixir/blob/main/lib/adk/auth/in_memory_store.ex#L1)

In-memory credential store using an Agent process.

Suitable for testing and development. Credentials are lost when the
process stops.

## Usage

    {:ok, store} = ADK.Auth.InMemoryStore.start_link(name: :my_cred_store)
    :ok = ADK.Auth.InMemoryStore.put("api_service", credential, server: store)
    {:ok, cred} = ADK.Auth.InMemoryStore.get("api_service", server: store)

# `child_spec`

Returns a specification to start this module under a supervisor.

See `Supervisor`.

# `start_link`

```elixir
@spec start_link(keyword()) :: Agent.on_start()
```

Start the in-memory credential store.

---

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