View Source ExPipedrive.Oauth.TokenStore behaviour (ex_pipedrive v0.1.0)
Behaviour for persisting OAuth token bundles.
Core does not depend on Ecto. Host apps implement this behaviour
(database, ETS, encrypted secrets, …). An in-memory store is provided for
tests and single-process scripts — see ExPipedrive.Oauth.TokenStore.Memory.
Summary
Types
@type id() :: term()
Callbacks
@callback get(id()) :: {:ok, ExPipedrive.Oauth.Token.t()} | {:error, :not_found}
@callback put(id(), ExPipedrive.Oauth.Token.t()) :: :ok | {:error, term()}