import { formatSecureCookieName, getCookieDomain, useSecureCookies } from '@documenso/lib/constants/auth'; import { requireEnv } from '@documenso/lib/utils/env'; /** * Shared HMAC secret + base attribute set for the CSC cookies. * * `NEXTAUTH_SECRET` is reused so signed-cookie verification stays uniform * across the auth + CSC surfaces. The `sameSite` conditional matches * `sessionCookieOptions` in `@documenso/auth` so a future embedding flow * (CSC inside an `