Skip to content

Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.

feat: update cookie domain

Marc Seitz495b6ed8fdba
diff --git a/pages/api/auth/[...nextauth].ts b/pages/api/auth/[...nextauth].ts
index 3c9440d5..b39edba0 100644
--- a/pages/api/auth/[...nextauth].ts
+++ b/pages/api/auth/[...nextauth].ts
@@ -24,7 +24,7 @@ export const authOptions: NextAuthOptions = {
sameSite: "lax",
path: "/",
// When working on localhost, the cookie domain must be omitted entirely (https://stackoverflow.com/a/1188145)
- domain: VERCEL_DEPLOYMENT ? "www.papermark.io" : undefined,
+ domain: VERCEL_DEPLOYMENT ? ".papermark.io" : undefined,
secure: VERCEL_DEPLOYMENT,
},
},