PrimaAuth0Ex.TokenProvider.TokenService behaviour (prima_auth0_ex v0.9.3)
View SourceBehaviour to deal with retrieval and refresh of tokens
Summary
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()}