Skip to content

[medium] Fix stale cache after session key rotation in x402-client #236

Description

@davedumto

Summary

After a session key rotates, x402-client.ts continues to serve cached authorization results tied to the old key.

Requirements

  • Invalidate relevant cache entries as part of session key rotation
  • Add a test verifying post-rotation calls do not use stale cached authorization
  • Add a debug log entry for cache invalidation on rotation
  • Document the invalidation step in the x402 README section

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Stellar WaveIssues in the Stellar wave program

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions