View Source PrimaAuth0Ex.TokenProvider.TokenCache behaviour (prima_auth0_ex v0.6.3-rc.0)
Behaviour that defines a cache for tokens.
Summary
Callbacks
@callback get_token_for(atom(), String.t()) :: {:ok, PrimaAuth0Ex.TokenProvider.TokenInfo.t() | nil} | {:error, any()}
@callback set_token_for(atom(), String.t(), PrimaAuth0Ex.TokenProvider.TokenInfo.t()) :: :ok | {:error, any()}