@infuro/cms-core 1.0.1 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1846,14 +1846,9 @@ function getNextAuthOptions(config) {
1846
1846
  ],
1847
1847
  session: { strategy: "jwt" },
1848
1848
  pages: { signIn: signInPage },
1849
- cookies: process.env.NODE_ENV === "production" ? {
1849
+ cookies: {
1850
1850
  sessionToken: {
1851
- name: "__Secure-next-auth.session-token",
1852
- options: { httpOnly: true, sameSite: "lax", path: "/", secure: true }
1853
- }
1854
- } : {
1855
- sessionToken: {
1856
- name: "next-auth.session-token",
1851
+ name: process.env.NEXTAUTH_URL?.startsWith("https") ? "__Secure-next-auth.session-token" : "next-auth.session-token",
1857
1852
  options: {
1858
1853
  httpOnly: true,
1859
1854
  sameSite: "lax",