javascript-solid-server 0.0.54 → 0.0.55

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "javascript-solid-server",
3
- "version": "0.0.54",
3
+ "version": "0.0.55",
4
4
  "description": "A minimal, fast Solid server",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
@@ -109,12 +109,14 @@ export async function createProvider(issuer) {
109
109
  maxAge: 14 * 24 * 60 * 60 * 1000, // 14 days
110
110
  httpOnly: true,
111
111
  sameSite: 'lax',
112
+ secure: process.env.NODE_ENV === 'production' || issuer.startsWith('https://'),
112
113
  path: '/',
113
114
  },
114
115
  short: {
115
116
  signed: true,
116
117
  httpOnly: true,
117
118
  sameSite: 'lax',
119
+ secure: process.env.NODE_ENV === 'production' || issuer.startsWith('https://'),
118
120
  path: '/',
119
121
  },
120
122
  },