decane-connect-kit 2.29.1 → 2.29.2
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.cjs +3 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +7 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1004,6 +1004,13 @@ interface SocialConfig {
|
|
|
1004
1004
|
* read from one tab to the whole origin.
|
|
1005
1005
|
*/
|
|
1006
1006
|
resumeSessionAcrossTabs?: boolean;
|
|
1007
|
+
/**
|
|
1008
|
+
* How long a wallet session lasts, in minutes. Default 480 (8 hours). The
|
|
1009
|
+
* session is still capped by the access token's expiry and the signer's own
|
|
1010
|
+
* limit, whichever comes first. It is also how long a saved session survives
|
|
1011
|
+
* a reload, so a shorter value signs people out on refresh sooner.
|
|
1012
|
+
*/
|
|
1013
|
+
sessionDurationMinutes?: number;
|
|
1007
1014
|
/**
|
|
1008
1015
|
* Offer to save a recovery-share file at signup. **Default false** since
|
|
1009
1016
|
* 2.7.4 — opt in explicitly with `true`.
|
package/dist/index.d.ts
CHANGED
|
@@ -1004,6 +1004,13 @@ interface SocialConfig {
|
|
|
1004
1004
|
* read from one tab to the whole origin.
|
|
1005
1005
|
*/
|
|
1006
1006
|
resumeSessionAcrossTabs?: boolean;
|
|
1007
|
+
/**
|
|
1008
|
+
* How long a wallet session lasts, in minutes. Default 480 (8 hours). The
|
|
1009
|
+
* session is still capped by the access token's expiry and the signer's own
|
|
1010
|
+
* limit, whichever comes first. It is also how long a saved session survives
|
|
1011
|
+
* a reload, so a shorter value signs people out on refresh sooner.
|
|
1012
|
+
*/
|
|
1013
|
+
sessionDurationMinutes?: number;
|
|
1007
1014
|
/**
|
|
1008
1015
|
* Offer to save a recovery-share file at signup. **Default false** since
|
|
1009
1016
|
* 2.7.4 — opt in explicitly with `true`.
|
package/dist/index.js
CHANGED
|
@@ -3828,7 +3828,7 @@ async function buildPortableBackup(deviceShare, recoveryShare, password, address
|
|
|
3828
3828
|
// src/social/client.ts
|
|
3829
3829
|
var DEFAULT_API_BASE = "https://backend.decane.app";
|
|
3830
3830
|
var DEFAULT_TEE_URL = "https://4405742df08d19abc549a05ade2a7154d98bd87f-8443.dstack-pha-prod9.phala.network";
|
|
3831
|
-
var DEFAULT_SESSION_MINUTES =
|
|
3831
|
+
var DEFAULT_SESSION_MINUTES = 480;
|
|
3832
3832
|
function makePersistKey(apiKey) {
|
|
3833
3833
|
return `decane:social:${apiKey.slice(0, 20)}`;
|
|
3834
3834
|
}
|
|
@@ -6812,6 +6812,7 @@ function DecaneKit({ config, children }) {
|
|
|
6812
6812
|
protection,
|
|
6813
6813
|
deferDeviceProtection,
|
|
6814
6814
|
resumeSessionAcrossTabs,
|
|
6815
|
+
sessionDurationMinutes,
|
|
6815
6816
|
// Recovery callbacks. Forwarding these is what makes recovery
|
|
6816
6817
|
// configurable at all from <DecaneKit>; before, they were silently
|
|
6817
6818
|
// dropped and the headless client was constructed without them.
|
|
@@ -6835,6 +6836,7 @@ function DecaneKit({ config, children }) {
|
|
|
6835
6836
|
protection,
|
|
6836
6837
|
deferDeviceProtection,
|
|
6837
6838
|
resumeSessionAcrossTabs,
|
|
6839
|
+
sessionDurationMinutes,
|
|
6838
6840
|
offerRecoveryAtSignup,
|
|
6839
6841
|
onRecoveryShareOffer,
|
|
6840
6842
|
onRecoveryFileReady,
|