View Source Plausible.Plugins.API.Tokens (Plausible v0.0.1)
Context module for Plugins API Tokens. Exposes high-level operation for token-based authentication flows.
Summary
Functions
@spec any?(Plausible.Site.t()) :: boolean()
@spec delete(Plausible.Site.t(), String.t()) :: :ok
@spec find(String.t()) :: {:ok, Plausible.Plugins.API.Token.t()} | {:error, :not_found}
@spec list(Plausible.Site.t()) :: {:ok, [Plausible.Plugins.API.Token.t()]}
@spec update_last_seen(Plausible.Plugins.API.Token.t(), NaiveDateTime.t()) :: {:ok, Plausible.Plugins.API.Token.t()}