Skip to content

feat(passport): reduce cookie size#2793

Merged
shineli1984 merged 3 commits intomainfrom
reduce-cookie-size
Feb 11, 2026
Merged

feat(passport): reduce cookie size#2793
shineli1984 merged 3 commits intomainfrom
reduce-cookie-size

Conversation

@shineli1984
Copy link
Collaborator

Summary

Reduce cookie size by moving the id token to client size.

@shineli1984 shineli1984 requested a review from a team as a code owner February 10, 2026 21:27
Merged origin/main which brought in proactive token refresh, getAccessToken,
and deduplication logic. Resolved conflict in hooks.tsx by keeping both:
- Proactive token refresh useEffect (from main)
- idToken localStorage sync useEffect (from reduce-cookie-size)

Also added storeIdToken call in the pendingRefresh path so that
getUser() persists the fresh idToken when piggy-backing on an in-flight
refresh.

Co-authored-by: Cursor <cursoragent@cursor.com>
@nx-cloud
Copy link

nx-cloud bot commented Feb 10, 2026

View your CI Pipeline Execution ↗ for commit e5999f6

Command Status Duration Result
nx run-many -p @imtbl/sdk,@imtbl/checkout-widge... ✅ Succeeded 1s View ↗

☁️ Nx Cloud last updated this comment at 2026-02-11 00:16:39 UTC

JCSanPedro
JCSanPedro previously approved these changes Feb 10, 2026
Co-authored-by: John Carlo San Pedro <j.carlosanpedro@gmail.com>
@shineli1984 shineli1984 merged commit bbcb69f into main Feb 11, 2026
10 of 11 checks passed
@shineli1984 shineli1984 deleted the reduce-cookie-size branch February 11, 2026 00:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants