View Source PrimaAuth0Ex.TokenProvider.TokenService behaviour (prima_auth0_ex v0.6.2)

Behaviour to deal with retrieval and refresh of tokens

Summary

Callbacks

Link to this callback

refresh_token(t, t, arg3, force_cache_bust)

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