Shared persisted-token workflow for OAuth2 token sources.
Summary
Functions
@spec load({module(), keyword()} | module()) :: {:ok, Pristine.OAuth2.Token.t()} | :error | {:error, term()}
@spec merge_tokens(Pristine.OAuth2.Token.t(), Pristine.OAuth2.Token.t()) :: Pristine.OAuth2.Token.t()
@spec refresh(Pristine.OAuth2.Provider.t(), keyword()) :: {:ok, Pristine.OAuth2.Token.t()} | :error | {:error, term()}
@spec save(Pristine.OAuth2.Token.t(), {module(), keyword()} | module()) :: :ok | {:error, term()}