View Source PrimaAuth0Ex.TokenCache behaviour (prima_auth0_ex v0.7.0)

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()}
Link to this callback

set_token_for(atom, t, t)

View Source
@callback set_token_for(atom(), String.t(), PrimaAuth0Ex.TokenProvider.TokenInfo.t()) ::
  :ok | {:error, any()}

Functions

Link to this function

get_configured_cache_provider()

View Source
Link to this function

get_token_for(client, audience)

View Source
Link to this function

set_token_for(client, audience, token)

View Source