View Source Plausible.Auth (Plausible v0.0.1)
Summary
Functions
@spec create_api_key(Plausible.Auth.User.t(), String.t(), String.t()) :: {:ok, Plausible.Auth.ApiKey.t()} | {:error, Ecto.Changeset.t()}
@spec delete_api_key(Plausible.Auth.User.t(), integer()) :: :ok | {:error, :not_found}
@spec find_api_key(String.t()) :: {:ok, Plausible.Auth.ApiKey.t()} | {:error, :invalid_api_key}