ArchAstro. SDK. TokenServer. Store behaviour
(archastro v0.3.4)
Copy Markdown
Optional durable backing store for the default ETS TokenServer.
Summary
Types
@type store_ref() :: GenServer.server() | struct() | ArchAstro.SDK.JSON.t()
Callbacks
@callback delete(store_ref(), String.t()) :: :ok | {:error, ArchAstro.SDK.Error.reason()}
@callback load(store_ref(), String.t()) :: {:ok, ArchAstro.SDK.Auth.TokenSet.t()} | :not_found | {:error, ArchAstro.SDK.Error.reason()}
@callback save(store_ref(), String.t(), ArchAstro.SDK.Auth.TokenSet.t()) :: :ok | {:error, ArchAstro.SDK.Error.reason()}