Packages
An easy to use library to authenticate machine-to-machine communications through Auth0.
Current section
Files
Jump to
Current section
Files
lib/prima_auth0_ex/token_provider/refresh_strategy.ex
defmodule PrimaAuth0Ex.TokenProvider.RefreshStrategy do
@moduledoc """
Behaviour to define a strategy to decide whether to refresh a token or keep using it for some more time.
"""
alias PrimaAuth0Ex.TokenProvider.TokenInfo
@callback refresh_time_for(atom(), TokenInfo.t()) :: Timex.Types.valid_datetime()
end