@infuro/cms-core 1.0.2 → 1.0.4
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/admin.cjs +42 -41
- package/dist/admin.cjs.map +1 -1
- package/dist/admin.js +42 -41
- package/dist/admin.js.map +1 -1
- package/dist/auth.cjs +2 -7
- package/dist/auth.cjs.map +1 -1
- package/dist/auth.js +2 -7
- package/dist/auth.js.map +1 -1
- package/dist/index.cjs +2 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -7
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
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:
|
|
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",
|