Haytni.Tokenable behaviour (Haytni v0.7.0) View Source

Link to this section Summary

Callbacks

Callback to build the query to purge expired tokens

Get the applicable context

Link to this section Callbacks

Link to this callback

expired_tokens_query(query, config)

View Source

Specs

expired_tokens_query(query :: Ecto.Queryable.t(), config :: Haytni.config()) ::
  Ecto.Query.t()

Callback to build the query to purge expired tokens

Specs

token_context(Haytni.nilable(String.t())) :: String.t()

Get the applicable context