View Source PrimaAuth0Ex.TokenCache behaviour (prima_auth0_ex v0.9.1)
Behaviour that defines a cache for tokens.
Summary
Callbacks
@callback child_spec(any()) :: Supervisor.child_spec()
@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()}