AttestoMCP.Test.DPoPReplay (AttestoMCP v0.5.0)

Copy Markdown View Source

Minimal DPoP replay callback for tests.

Production systems should use a shared store for every MCP server instance. This helper is process-local and exists only to make replay behavior explicit in tests and examples.

Summary

Functions

Return a replay_check callback compatible with Attesto.DPoP.verify_proof/2.

Functions

callback()

@spec callback() :: (String.t(), pos_integer() -> :ok | {:error, :replay})

Return a replay_check callback compatible with Attesto.DPoP.verify_proof/2.