@dynamic-labs/waas 4.25.10 → 4.27.0
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/CHANGELOG.md +31 -0
- package/package.cjs +1 -1
- package/package.js +1 -1
- package/package.json +9 -9
- package/src/DynamicWaasMixin.cjs +8 -3
- package/src/DynamicWaasMixin.d.ts +2 -0
- package/src/DynamicWaasMixin.js +8 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,35 @@
|
|
|
1
1
|
|
|
2
|
+
## [4.27.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.26.0...v4.27.0) (2025-08-16)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
* add cookie option to waas connectors ([#9335](https://github.com/dynamic-labs/dynamic-auth/issues/9335)) ([2330f58](https://github.com/dynamic-labs/dynamic-auth/commit/2330f58b5eb35da8568c3114d2d2507a742ad22c))
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Bug Fixes
|
|
11
|
+
|
|
12
|
+
* ensure consistent dynamic api url ([#9357](https://github.com/dynamic-labs/dynamic-auth/issues/9357)) ([0cb9bde](https://github.com/dynamic-labs/dynamic-auth/commit/0cb9bdeb7eb6e4d103dafecea337d1548a62b9b7))
|
|
13
|
+
|
|
14
|
+
## [4.26.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.25.10...v4.26.0) (2025-08-14)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* add forceRefresh to useTokenBalances ([#9320](https://github.com/dynamic-labs/dynamic-auth/issues/9320)) ([22c4035](https://github.com/dynamic-labs/dynamic-auth/commit/22c403546496ffb6b1ed846510a079efc65c5d57))
|
|
20
|
+
* add signMessageWithContext to support user operations with WaaS ([#9287](https://github.com/dynamic-labs/dynamic-auth/issues/9287)) ([744c158](https://github.com/dynamic-labs/dynamic-auth/commit/744c158a890346c624a101ba8b20911eefbdd1ef))
|
|
21
|
+
* add sui support to react native ([#9236](https://github.com/dynamic-labs/dynamic-auth/issues/9236)) ([301d821](https://github.com/dynamic-labs/dynamic-auth/commit/301d821b16eb1bc112609882ed0ae5e9f2477ace))
|
|
22
|
+
* add whitelistedContracts to token balance hooks ([#9324](https://github.com/dynamic-labs/dynamic-auth/issues/9324)) ([86596dd](https://github.com/dynamic-labs/dynamic-auth/commit/86596dd692152f82a2553b9824ce21781024dac1))
|
|
23
|
+
* pass policy context to sign authorization ([#9327](https://github.com/dynamic-labs/dynamic-auth/issues/9327)) ([3e6d009](https://github.com/dynamic-labs/dynamic-auth/commit/3e6d009ca3d50e01a665550fa803d07bd3038eb1))
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
### Bug Fixes
|
|
27
|
+
|
|
28
|
+
* don't prompt passkeys twice when component renders ([#9340](https://github.com/dynamic-labs/dynamic-auth/issues/9340)) ([8fbdd28](https://github.com/dynamic-labs/dynamic-auth/commit/8fbdd287d1dd67fee4720f16a3d506f75d9dafe7))
|
|
29
|
+
* onAuthSuccess with primaryWallet null when signing up with embedded wallets v3 ([#9345](https://github.com/dynamic-labs/dynamic-auth/issues/9345)) ([14e54a0](https://github.com/dynamic-labs/dynamic-auth/commit/14e54a093395a46cb32282aebc172b26c243d42f))
|
|
30
|
+
* rename passkey not automatically updating UI ([#9339](https://github.com/dynamic-labs/dynamic-auth/issues/9339)) ([b9ef253](https://github.com/dynamic-labs/dynamic-auth/commit/b9ef2532152a228feebb1fb9811937d7a14d81b1))
|
|
31
|
+
* wallet kit being initiated internally multiple times ([#9344](https://github.com/dynamic-labs/dynamic-auth/issues/9344)) ([49a3664](https://github.com/dynamic-labs/dynamic-auth/commit/49a3664c5995b0104693ec87b41b8540dd19bdca))
|
|
32
|
+
|
|
2
33
|
### [4.25.10](https://github.com/dynamic-labs/dynamic-auth/compare/v4.25.9...v4.25.10) (2025-08-07)
|
|
3
34
|
|
|
4
35
|
|
package/package.cjs
CHANGED
package/package.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs/waas",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.27.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"author": "Dynamic Labs, Inc.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -16,14 +16,14 @@
|
|
|
16
16
|
"./package.json": "./package.json"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@dynamic-labs/assert-package-version": "4.
|
|
20
|
-
"@dynamic-labs/sdk-api-core": "0.0.
|
|
21
|
-
"@dynamic-labs-wallet/browser-wallet-client": "0.0.
|
|
22
|
-
"@dynamic-labs/ethereum-core": "4.
|
|
23
|
-
"@dynamic-labs/solana-core": "4.
|
|
24
|
-
"@dynamic-labs/sui-core": "4.
|
|
25
|
-
"@dynamic-labs/utils": "4.
|
|
26
|
-
"@dynamic-labs/wallet-book": "4.
|
|
19
|
+
"@dynamic-labs/assert-package-version": "4.27.0",
|
|
20
|
+
"@dynamic-labs/sdk-api-core": "0.0.753",
|
|
21
|
+
"@dynamic-labs-wallet/browser-wallet-client": "0.0.137",
|
|
22
|
+
"@dynamic-labs/ethereum-core": "4.27.0",
|
|
23
|
+
"@dynamic-labs/solana-core": "4.27.0",
|
|
24
|
+
"@dynamic-labs/sui-core": "4.27.0",
|
|
25
|
+
"@dynamic-labs/utils": "4.27.0",
|
|
26
|
+
"@dynamic-labs/wallet-book": "4.27.0"
|
|
27
27
|
},
|
|
28
28
|
"peerDependencies": {}
|
|
29
29
|
}
|
package/src/DynamicWaasMixin.cjs
CHANGED
|
@@ -30,6 +30,9 @@ const withDynamicWaas = (BaseClass) => {
|
|
|
30
30
|
setGetAuthTokenFunction(getAuthToken) {
|
|
31
31
|
this.getAuthToken = getAuthToken;
|
|
32
32
|
}
|
|
33
|
+
setWaasAuthMode(authMode) {
|
|
34
|
+
this.authMode = authMode;
|
|
35
|
+
}
|
|
33
36
|
setGetMfaTokenFunction(getMfaToken) {
|
|
34
37
|
this.getMfaToken = getMfaToken;
|
|
35
38
|
}
|
|
@@ -73,6 +76,7 @@ const withDynamicWaas = (BaseClass) => {
|
|
|
73
76
|
this.name = 'Dynamic Waas';
|
|
74
77
|
this.overrideKey = 'dynamicwaas';
|
|
75
78
|
this.isEmbeddedWallet = true;
|
|
79
|
+
this.authMode = 'header';
|
|
76
80
|
// Initialize export handler
|
|
77
81
|
this.__exportHandler = new WaasExportHandler();
|
|
78
82
|
// Get the class name from the constructor
|
|
@@ -93,14 +97,15 @@ const withDynamicWaas = (BaseClass) => {
|
|
|
93
97
|
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
94
98
|
var _a;
|
|
95
99
|
const authToken = (_a = this.getAuthToken) === null || _a === void 0 ? void 0 : _a.call(this);
|
|
96
|
-
if (!authToken) {
|
|
97
|
-
throw new utils.DynamicError('Auth token is required');
|
|
100
|
+
if (!authToken && this.authMode === 'header') {
|
|
101
|
+
throw new utils.DynamicError('Auth token is required in non-cookie auth mode');
|
|
98
102
|
}
|
|
99
103
|
if (!this.environmentId) {
|
|
100
104
|
throw new utils.DynamicError('Environment ID is required');
|
|
101
105
|
}
|
|
102
106
|
const client = new browserWalletClient.DynamicWalletClient({
|
|
103
|
-
|
|
107
|
+
authMode: (this.authMode || 'header'),
|
|
108
|
+
authToken: authToken || '',
|
|
104
109
|
baseApiUrl: this.baseApiUrl || constants.DEFAULT_BASE_API_URL,
|
|
105
110
|
baseMPCRelayApiUrl: this.relayUrl || constants.DEFAULT_BASE_MPC_RELAY_API_URL,
|
|
106
111
|
chainName: this.chainName,
|
|
@@ -20,9 +20,11 @@ export declare const withDynamicWaas: <T extends abstract new (...args: any[]) =
|
|
|
20
20
|
relayUrl?: string | undefined;
|
|
21
21
|
dynamicWaasClient: DynamicWalletClient | undefined;
|
|
22
22
|
chainName: string;
|
|
23
|
+
authMode: 'cookie' | 'header';
|
|
23
24
|
__exportHandler: WaasExportHandler;
|
|
24
25
|
validateActiveWallet(expectedAddress: string): Promise<void>;
|
|
25
26
|
setGetAuthTokenFunction(getAuthToken: () => string): void;
|
|
27
|
+
setWaasAuthMode(authMode: 'cookie' | 'header'): void;
|
|
26
28
|
setGetMfaTokenFunction(getMfaToken: (props?: {
|
|
27
29
|
mfaAction?: MFAAction;
|
|
28
30
|
}) => Promise<string | undefined>): void;
|
package/src/DynamicWaasMixin.js
CHANGED
|
@@ -26,6 +26,9 @@ const withDynamicWaas = (BaseClass) => {
|
|
|
26
26
|
setGetAuthTokenFunction(getAuthToken) {
|
|
27
27
|
this.getAuthToken = getAuthToken;
|
|
28
28
|
}
|
|
29
|
+
setWaasAuthMode(authMode) {
|
|
30
|
+
this.authMode = authMode;
|
|
31
|
+
}
|
|
29
32
|
setGetMfaTokenFunction(getMfaToken) {
|
|
30
33
|
this.getMfaToken = getMfaToken;
|
|
31
34
|
}
|
|
@@ -69,6 +72,7 @@ const withDynamicWaas = (BaseClass) => {
|
|
|
69
72
|
this.name = 'Dynamic Waas';
|
|
70
73
|
this.overrideKey = 'dynamicwaas';
|
|
71
74
|
this.isEmbeddedWallet = true;
|
|
75
|
+
this.authMode = 'header';
|
|
72
76
|
// Initialize export handler
|
|
73
77
|
this.__exportHandler = new WaasExportHandler();
|
|
74
78
|
// Get the class name from the constructor
|
|
@@ -89,14 +93,15 @@ const withDynamicWaas = (BaseClass) => {
|
|
|
89
93
|
return __awaiter(this, void 0, void 0, function* () {
|
|
90
94
|
var _a;
|
|
91
95
|
const authToken = (_a = this.getAuthToken) === null || _a === void 0 ? void 0 : _a.call(this);
|
|
92
|
-
if (!authToken) {
|
|
93
|
-
throw new DynamicError('Auth token is required');
|
|
96
|
+
if (!authToken && this.authMode === 'header') {
|
|
97
|
+
throw new DynamicError('Auth token is required in non-cookie auth mode');
|
|
94
98
|
}
|
|
95
99
|
if (!this.environmentId) {
|
|
96
100
|
throw new DynamicError('Environment ID is required');
|
|
97
101
|
}
|
|
98
102
|
const client = new DynamicWalletClient({
|
|
99
|
-
|
|
103
|
+
authMode: (this.authMode || 'header'),
|
|
104
|
+
authToken: authToken || '',
|
|
100
105
|
baseApiUrl: this.baseApiUrl || DEFAULT_BASE_API_URL,
|
|
101
106
|
baseMPCRelayApiUrl: this.relayUrl || DEFAULT_BASE_MPC_RELAY_API_URL,
|
|
102
107
|
chainName: this.chainName,
|