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()
Link to this function

create(site, description, generated_token \\ Token.generate())

View Source
@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()]}