Turnstile.Behaviour behaviour (phoenix_turnstile v1.2.0)

View Source

Summary

Callbacks

refresh(map)

@callback refresh(map()) :: map()

refresh(map, binary)

@callback refresh(map(), binary()) :: map()

remove(map)

@callback remove(map()) :: map()

remove(map, binary)

@callback remove(map(), binary()) :: map()

secret_key()

@callback secret_key() :: binary()

site_key()

@callback site_key() :: binary()

verify(map)

@callback verify(%{required(binary()) => binary()}) :: {:ok, term()} | {:error, term()}

verify(map, arg2)

@callback verify(%{required(binary()) => binary()}, tuple() | binary()) ::
  {:ok, term()} | {:error, term()}