# PhoenixCap v0.1.0 - API Reference

## Modules

- Phoenix integration
  - [PhoenixCap](PhoenixCap.md): Mounts the Cap endpoints and verifies one-time tokens in Phoenix.
  - [PhoenixCap.Components](PhoenixCap.Components.md): HEEx components for the PhoenixCap assets and widget.
  - [PhoenixCap.RequireToken](PhoenixCap.RequireToken.md): Requires a valid `cap-token` request parameter. A successful check consumes
the token and continues the pipeline. A failed check sends HTTP 422 and halts.

- Protocol and adapters
  - [PhoenixCap.Challenge](PhoenixCap.Challenge.md): Cap-compatible proof-of-work challenge generation and redemption.
  - [PhoenixCap.Plug](PhoenixCap.Plug.md): Cap challenge and redemption endpoint with self-hosted widget assets.
  - [PhoenixCap.Token](PhoenixCap.Token.md): Behaviour for configured verification token modules.

## Mix Tasks

- [mix phoenix_cap.update](Mix.Tasks.PhoenixCap.Update.md): Updates bundled Cap widget and WASM assets from npm.

