View Source PrimaAuth0Ex.TokenProvider.TokenService behaviour (prima_auth0_ex v0.4.5)
Behaviour to deal with retrieval and refresh of tokens
Link to this section Summary
Link to this section Callbacks
@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()}