Lockspire.Storage.UsedJtiStore behaviour
(lockspire v1.0.0)
Copy Markdown
Behavior for tracking and verifying used JTIs to prevent replay attacks.
Summary
Callbacks
Records a JTI as used. Returns {:ok, :accepted} if successfully recorded,
or {:ok, :replay} if the JTI for this client_id has already been recorded.
Callbacks
@callback record_used_jti(Lockspire.Domain.UsedJti.t()) :: {:ok, :accepted | :replay} | {:error, term()}
Records a JTI as used. Returns {:ok, :accepted} if successfully recorded,
or {:ok, :replay} if the JTI for this client_id has already been recorded.