decane-connect-kit 2.2.0 → 2.2.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.
- package/dist/index.cjs +11 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +11 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.js +11 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -81,6 +81,17 @@ interface SocialConfig {
|
|
|
81
81
|
apiBaseUrl?: string;
|
|
82
82
|
chains?: string[];
|
|
83
83
|
rpcUrls?: Record<string, string>;
|
|
84
|
+
/**
|
|
85
|
+
* Require a fresh WebAuthn assertion for every signature rather than letting
|
|
86
|
+
* an unlocked session sign freely until it expires. Enforced inside the TEE.
|
|
87
|
+
*
|
|
88
|
+
* Does not change the session lifetime — the session stays warm (no
|
|
89
|
+
* re-attestation, no re-auth) and authority is re-proven per signature
|
|
90
|
+
* instead. Default false. Needs a passkey; PIN-only wallets have no
|
|
91
|
+
* authenticator to assert with. See SocialConfig's counterpart in
|
|
92
|
+
* social/types.ts for the full caveats.
|
|
93
|
+
*/
|
|
94
|
+
requireAssertionPerSignature?: boolean;
|
|
84
95
|
/**
|
|
85
96
|
* Sign in with a token from your own auth system (Auth0, Clerk, Firebase,
|
|
86
97
|
* Cognito, or your own backend) — surfaced as a button in the built-in
|
package/dist/index.d.ts
CHANGED
|
@@ -81,6 +81,17 @@ interface SocialConfig {
|
|
|
81
81
|
apiBaseUrl?: string;
|
|
82
82
|
chains?: string[];
|
|
83
83
|
rpcUrls?: Record<string, string>;
|
|
84
|
+
/**
|
|
85
|
+
* Require a fresh WebAuthn assertion for every signature rather than letting
|
|
86
|
+
* an unlocked session sign freely until it expires. Enforced inside the TEE.
|
|
87
|
+
*
|
|
88
|
+
* Does not change the session lifetime — the session stays warm (no
|
|
89
|
+
* re-attestation, no re-auth) and authority is re-proven per signature
|
|
90
|
+
* instead. Default false. Needs a passkey; PIN-only wallets have no
|
|
91
|
+
* authenticator to assert with. See SocialConfig's counterpart in
|
|
92
|
+
* social/types.ts for the full caveats.
|
|
93
|
+
*/
|
|
94
|
+
requireAssertionPerSignature?: boolean;
|
|
84
95
|
/**
|
|
85
96
|
* Sign in with a token from your own auth system (Auth0, Clerk, Firebase,
|
|
86
97
|
* Cognito, or your own backend) — surfaced as a button in the built-in
|
package/dist/index.js
CHANGED
|
@@ -5251,7 +5251,15 @@ function DecaneKit({ config, children }) {
|
|
|
5251
5251
|
useEffect3(() => {
|
|
5252
5252
|
if (!hasSocial(mode) || !config?.social || socialInitialized.current) return;
|
|
5253
5253
|
socialInitialized.current = true;
|
|
5254
|
-
const {
|
|
5254
|
+
const {
|
|
5255
|
+
apiKey,
|
|
5256
|
+
authMethods,
|
|
5257
|
+
promptPin,
|
|
5258
|
+
apiBaseUrl,
|
|
5259
|
+
chains,
|
|
5260
|
+
rpcUrls,
|
|
5261
|
+
requireAssertionPerSignature
|
|
5262
|
+
} = config.social;
|
|
5255
5263
|
createDecaneConnect({
|
|
5256
5264
|
appId: config.appId,
|
|
5257
5265
|
apiKey,
|
|
@@ -5259,7 +5267,8 @@ function DecaneKit({ config, children }) {
|
|
|
5259
5267
|
authMethods: authMethods ?? ["google", "email"],
|
|
5260
5268
|
chains: chains ?? ["evm:1", "solana:mainnet"],
|
|
5261
5269
|
rpcUrls,
|
|
5262
|
-
promptPin
|
|
5270
|
+
promptPin,
|
|
5271
|
+
requireAssertionPerSignature
|
|
5263
5272
|
}).then((sdk) => {
|
|
5264
5273
|
socialRef.current = sdk;
|
|
5265
5274
|
sdk.on(
|