@logto/sveltekit 0.3.4 → 0.3.6
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/lib/index.js +3 -1
- package/package.json +2 -2
package/lib/index.js
CHANGED
|
@@ -104,8 +104,10 @@ const buildCookieStorageFromEvent = async (event, cookieConfig) => {
|
|
|
104
104
|
event.cookies.set(...args);
|
|
105
105
|
},
|
|
106
106
|
getCookie: (...args) => event.cookies.get(...args),
|
|
107
|
+
isSecure: event.request.headers.get('x-forwarded-proto') === 'https' ||
|
|
108
|
+
event.request.url.startsWith('https'),
|
|
107
109
|
...cookieConfig,
|
|
108
|
-
}
|
|
110
|
+
});
|
|
109
111
|
await storage.init();
|
|
110
112
|
return storage;
|
|
111
113
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@logto/sveltekit",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.6",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"module": "./lib/index.js",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"@sveltejs/kit": "^2.0.0"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@logto/node": "^2.5.
|
|
49
|
+
"@logto/node": "^2.5.7"
|
|
50
50
|
},
|
|
51
51
|
"scripts": {
|
|
52
52
|
"dev:tsc": "tsc -p tsconfig.build.json -w --preserveWatchOutput",
|