feat(auth): add support for cross-subdomain cookies and improve environment variable handling

This commit is contained in:
2026-03-11 23:39:14 +08:00
parent 20e0cd068f
commit 103c86e14d
2 changed files with 20 additions and 2 deletions

View File

@@ -1,2 +1,5 @@
BETTER_AUTH_SECRET=
WEB_ORIGIN=http://localhost:3000
DATABASE_CONNECTION_STRING=
# 生产环境跨子域 Cookie例如 .uniiem.com
COOKIE_DOMAIN=