fix(auth): avoid dropping session_token Set-Cookie on sign-in (#2718)

* fix credentials sign-in session cookie handling

* refactor(auth): rename originWith to withHostname

* refactor(auth): preserve localhost/127.0.0.1 sibling trust with LOCAL_ORIGINS

* update dependencies, update code style

---------

Co-authored-by: Amruth Pillai <im.amruth@gmail.com>
This commit is contained in:
Yeung
2026-02-24 17:08:32 +08:00
committed by GitHub
parent f73a5117a1
commit 8b3f3bcc35
4 changed files with 254 additions and 251 deletions
+9 -9
View File
@@ -4,7 +4,7 @@
"version": "5.0.9",
"license": "MIT",
"type": "module",
"packageManager": "pnpm@10.30.1+sha512.3590e550d5384caa39bd5c7c739f72270234b2f6059e13018f975c313b1eb9fefcc09714048765d4d9efe961382c312e624572c0420762bdc5d5940cdf9be73a",
"packageManager": "pnpm@10.30.2+sha512.36cdc707e7b7940a988c9c1ecf88d084f8514b5c3f085f53a2e244c2921d3b2545bc20dd4ebe1fc245feec463bb298aecea7a63ed1f7680b877dc6379d8d0cb4",
"repository": {
"type": "git",
"url": "https://github.com/amruthpillai/reactive-resume.git"
@@ -33,9 +33,9 @@
"dependencies": {
"@ai-sdk/anthropic": "^3.0.46",
"@ai-sdk/google": "^3.0.30",
"@ai-sdk/openai": "^3.0.30",
"@ai-sdk/openai": "^3.0.31",
"@ai-sdk/react": "^3.0.99",
"@aws-sdk/client-s3": "^3.995.0",
"@aws-sdk/client-s3": "^3.996.0",
"@better-auth/core": "1.5.0-beta.18",
"@dnd-kit/core": "^6.3.1",
"@dnd-kit/sortable": "^10.0.0",
@@ -56,10 +56,10 @@
"@sindresorhus/slugify": "^3.0.0",
"@t3-oss/env-core": "^0.13.10",
"@tanstack/react-query": "5.90.21",
"@tanstack/react-router": "^1.162.6",
"@tanstack/react-router-ssr-query": "^1.162.6",
"@tanstack/react-start": "^1.162.6",
"@tanstack/zod-adapter": "^1.162.6",
"@tanstack/react-router": "^1.162.8",
"@tanstack/react-router-ssr-query": "^1.162.8",
"@tanstack/react-start": "^1.162.8",
"@tanstack/zod-adapter": "^1.162.8",
"@tiptap/extension-highlight": "^3.20.0",
"@tiptap/extension-table": "^3.20.0",
"@tiptap/extension-text-align": "^3.20.0",
@@ -76,7 +76,7 @@
"dompurify": "^3.3.1",
"drizzle-orm": "^1.0.0-beta.15-859cf75",
"drizzle-zod": "^0.8.3",
"@modelcontextprotocol/sdk": "^1.26.0",
"@modelcontextprotocol/sdk": "^1.27.0",
"es-toolkit": "^1.44.0",
"fast-deep-equal": "^3.1.3",
"fast-json-patch": "^3.1.1",
@@ -126,7 +126,7 @@
"@types/pg": "^8.16.0",
"@types/react": "^19.2.14",
"@types/react-dom": "^19.2.3",
"@typescript/native-preview": "7.0.0-dev.20260223.1",
"@typescript/native-preview": "7.0.0-dev.20260224.1",
"@vitejs/plugin-react": "^5.1.4",
"babel-plugin-macros": "^3.1.0",
"drizzle-kit": "^1.0.0-beta.15-859cf75",