@workos-inc/node 7.35.0 → 7.35.1
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.
|
@@ -19,7 +19,10 @@ class EdgeIronSessionProvider extends iron_session_provider_1.IronSessionProvide
|
|
|
19
19
|
/** @override */
|
|
20
20
|
sealData(data, options) {
|
|
21
21
|
return __awaiter(this, void 0, void 0, function* () {
|
|
22
|
-
|
|
22
|
+
// The iron-session default ttl is 14 days, which can be problematic if the WorkOS session is configured to be > 14 days.
|
|
23
|
+
// In that case the session expires and can't be refreshed, so we set the ttl to 0 to set it to the max possible value.
|
|
24
|
+
const sealOptions = Object.assign(Object.assign({}, options), { ttl: 0 });
|
|
25
|
+
return (0, edge_1.sealData)(data, sealOptions);
|
|
23
26
|
});
|
|
24
27
|
}
|
|
25
28
|
/** @override */
|
|
@@ -19,7 +19,10 @@ class WebIronSessionProvider extends iron_session_provider_1.IronSessionProvider
|
|
|
19
19
|
/** @override */
|
|
20
20
|
sealData(data, options) {
|
|
21
21
|
return __awaiter(this, void 0, void 0, function* () {
|
|
22
|
-
|
|
22
|
+
// The iron-session default ttl is 14 days, which can be problematic if the WorkOS session is configured to be > 14 days.
|
|
23
|
+
// In that case the session expires and can't be refreshed, so we set the ttl to 0 to set it to the max possible value.
|
|
24
|
+
const sealOptions = Object.assign(Object.assign({}, options), { ttl: 0 });
|
|
25
|
+
return (0, iron_session_1.sealData)(data, sealOptions);
|
|
23
26
|
});
|
|
24
27
|
}
|
|
25
28
|
/** @override */
|
package/lib/workos.js
CHANGED
|
@@ -29,7 +29,7 @@ const subtle_crypto_provider_1 = require("./common/crypto/subtle-crypto-provider
|
|
|
29
29
|
const fetch_client_1 = require("./common/net/fetch-client");
|
|
30
30
|
const widgets_1 = require("./widgets/widgets");
|
|
31
31
|
const actions_1 = require("./actions/actions");
|
|
32
|
-
const VERSION = '7.35.
|
|
32
|
+
const VERSION = '7.35.1';
|
|
33
33
|
const DEFAULT_HOSTNAME = 'api.workos.com';
|
|
34
34
|
const HEADER_AUTHORIZATION = 'Authorization';
|
|
35
35
|
const HEADER_IDEMPOTENCY_KEY = 'Idempotency-Key';
|
package/package.json
CHANGED