PhoenixLens.Tokens (phoenix_lens v0.1.3)

Copy Markdown View Source

Project tokens for the Lens MCP endpoint.

The public token id (plt_…) is safe to list. The secret (lns_…) is shown once and stored only as a SHA-256 hash. Authenticate with Authorization: Bearer <secret> (optionally plt_…:lns_…).

Summary

Functions

authenticate(bearer)

create(name)

ensure_table()

hash_secret(secret)

list()

parse_bearer(value)

revoke(id)

table_sql()