mirror of
https://github.com/rersozlu/food402.git
synced 2026-04-25 07:15:49 +03:00
[PR #6] [MERGED] fix: prevent session expiry drift and strengthen cid verification #6
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/food402#6
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/rersozlu/food402/pull/6
Author: @rersozlu
Created: 2/2/2026
Status: ✅ Merged
Merged: 2/2/2026
Merged by: @rersozlu
Base:
master← Head:fix/refresh-token-security📝 Commits (5)
2155e3cfix: strengthen refresh token security with client binding and rollback946367cfix: prevent session expiry drift and strengthen cid verification412cf67test: add coverage for sca anti-drift and cid mismatch2aa037bfeat: add agent instructions for MCP food ordering584edfaMerge pull request #7 from rersozlu/feat/agent-instructions📊 Changes
6 files changed (+666 additions, -58 deletions)
View changed files
📝
remote/src/auth/oauth-provider.ts(+196 -40)📝
remote/src/server.ts(+31 -3)📝
remote/src/session/store.ts(+73 -12)📝
remote/src/session/types.ts(+6 -0)➕
remote/test/oauth-provider.test.ts(+329 -0)📝
src/index.ts(+31 -3)📄 Description
Summary
sca(session_created_at) JWT claim to preserve original session creation time, preventing the 30-day expiry window from drifting forward on each token refreshcidin JWT AND verify it matchessession.clientId, rejecting legacy JWTs even when session exists in KVTest plan
node --test --import tsx remote/test/oauth-provider.test.ts)🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.