Skip to content

Conversation

@monkeyWie
Copy link
Owner

No description provided.

@augmentcode
Copy link

augmentcode bot commented Dec 18, 2025

🤖 Augment PR Summary

Summary: Adds configurable cookie domain support so auth/session cookies can be shared across subdomains.

Changes:

  • Passes a new COOKIE_DOMAIN secret through the GitHub Actions deploy workflow.
  • Extends the Cloudflare deployment script to inject COOKIE_DOMAIN into production Wrangler vars.
  • Wires COOKIE_DOMAIN into the server’s auth configuration and exposes it via AuthConfig.cookieDomain.
  • Configures Better Auth cookie attributes to include the configured cookie domain when present.
  • Documents the new variable in wrangler.toml as an optional setting.

Technical Notes: When set, the cookie domain is applied at auth initialization time; leaving it unset preserves current single-domain cookie behavior.

🤖 Was this summary useful? React with 👍 or 👎

Copy link

@augmentcode augmentcode bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review completed. 1 suggestions posted.

Comment augment review to trigger a new review at any time.

@monkeyWie monkeyWie added the enhancement New feature or request label Dec 18, 2025
@monkeyWie monkeyWie changed the title fix: add COOKIE_DOMAIN support for cross-subdomain sharing feat: add COOKIE_DOMAIN support for cross-subdomain sharing Dec 18, 2025
@monkeyWie monkeyWie merged commit 63cd640 into main Dec 18, 2025
1 check passed
@monkeyWie monkeyWie deleted the feat/cross_cookie branch December 18, 2025 15:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants