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

Link to this function

create(site, description)

View Source
@spec create(Plausible.Site.t(), String.t()) ::
  {:ok, Plausible.Plugins.API.Token.t(), String.t()}
  | {:error, Ecto.Changeset.t()}
@spec find(String.t(), String.t()) ::
  {:ok, Plausible.Plugins.API.Token.t()} | {:error, :not_found}