Refactor TanStack Start’s Cookie & Session Management #5103
Pranav-Grandhi
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Summary:
Currently, TanStack Start relies on H3's session and cookie APIs, which are functional but limited in flexibility, type safety, and security features. Refactoring TanStack Start to adopt patterns from Remix’s
createCookie
andcreateCookieSessionStorage
would allow better ergonomics, enhanced control over cookie lifetimes, and support for encrypted/signed cookies.Benefits:
Implementation:
createCookie
/createCookieSessionStorage
.Potential Risks:
This change would modernize and strengthen the core API for handling cookies and sessions, improving security and developer experience.
Beta Was this translation helpful? Give feedback.
All reactions