PrimaAuth0Ex.TokenProvider.TokenService behaviour (prima_auth0_ex v0.9.3)

View Source

Behaviour to deal with retrieval and refresh of tokens

Summary

Callbacks

refresh_token(t, t, arg3, force_cache_bust)

@callback refresh_token(
  PrimaAuth0Ex.Auth0Credentials.t(),
  String.t(),
  PrimaAuth0Ex.TokenProvider.TokenInfo.t() | nil,
  force_cache_bust :: boolean()
) :: {:ok, PrimaAuth0Ex.TokenProvider.TokenInfo.t()} | {:error, any()}

retrieve_token(t, t)

@callback retrieve_token(PrimaAuth0Ex.Auth0Credentials.t(), String.t()) ::
  {:ok, PrimaAuth0Ex.TokenProvider.TokenInfo.t()} | {:error, any()}