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)
Summary
Functions
Returns a specification to start this module under a supervisor.
Start the in-memory credential store.
Functions
Returns a specification to start this module under a supervisor.
See Supervisor.
@spec start_link(keyword()) :: Agent.on_start()
Start the in-memory credential store.