Skip to content

fix(paseto): seed the SCAN cursor as a string for both clients - #31

Merged
ExorTek merged 1 commit into
fix/magic-link-consumefrom
fix/paseto-scan-cursor
Aug 6, 2026
Merged

fix(paseto): seed the SCAN cursor as a string for both clients#31
ExorTek merged 1 commit into
fix/magic-link-consumefrom
fix/paseto-scan-cursor

Conversation

@ExorTek

@ExorTek ExorTek commented Aug 6, 2026

Copy link
Copy Markdown
Owner

Stacked on #30. Last of the Redis series.

deleteAll walked the keyspace with SCAN, seeding the cursor as a number on the node-redis branch. node-redis typed cursors as numbers through v5 but requires a string from v6, and the declared peer range (redis >=4.0.0) admits v6 — so family revocation, which is what runs when refresh-token reuse is detected, failed against a current node-redis.

Redis cursors are protocol strings either way, so both dialects now seed and compare a string and the branch disappears.

Worth noting: paseto is the store the other fixes were modelled on, and it still had this. It only showed up once the suite ran against a second driver.

After this, every Redis suite is green on both clients with no todo markers left.

Copilot AI lite review requested due to automatic review settings August 6, 2026 09:11

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@ExorTek
ExorTek force-pushed the fix/paseto-scan-cursor branch from 4e12797 to 1f18617 Compare August 6, 2026 09:14
`deleteAll` walked the keyspace with SCAN, starting the cursor as a number on
the node-redis branch. node-redis typed cursors as numbers through v5 but
requires a string from v6, and the peer range (`redis >=4.0.0`) admits v6 — so
family revocation, which is what runs when refresh-token reuse is detected,
failed against a current node-redis.

Redis cursors are protocol strings either way, so both dialects now seed and
compare a string and the branch disappears.
@ExorTek
ExorTek force-pushed the fix/paseto-scan-cursor branch from 1f18617 to a3ce1a5 Compare August 6, 2026 09:17
@ExorTek
ExorTek merged commit b72abf8 into master Aug 6, 2026
4 of 5 checks passed
@ExorTek
ExorTek deleted the fix/paseto-scan-cursor branch August 6, 2026 09:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants