Skip to content

fix: harden auth cookie expiration handling#179

Open
baiyu07 wants to merge 1 commit into
wechat-article:masterfrom
baiyu07:codex/auth-cookie-hardening
Open

fix: harden auth cookie expiration handling#179
baiyu07 wants to merge 1 commit into
wechat-article:masterfrom
baiyu07:codex/auth-cookie-hardening

Conversation

@baiyu07

@baiyu07 baiyu07 commented May 31, 2026

Copy link
Copy Markdown

This change improves authentication cookie hygiene by adding expiration-state detection for stored MP cookies and avoiding reuse of expired auth cache entries. It also removes plaintext token logging during login and adds SameSite=Lax to internal auth cookies.

Verified with:

  • node --test ./test/cookie-expiration.test.ts
  • yarn biome check ...
  • yarn build

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.

1 participant