@dynamic-labs/waas 4.87.1 → 4.88.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 +20 -0
- package/package.cjs +1 -1
- package/package.js +1 -1
- package/package.json +11 -11
- package/src/DynamicWaasMixin.cjs +8 -2
- package/src/DynamicWaasMixin.d.ts +4 -1
- package/src/DynamicWaasMixin.js +8 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,24 @@
|
|
|
1
1
|
|
|
2
|
+
## [4.88.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.87.2...v4.88.0) (2026-06-04)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
* **waas:** log out on iframe 401 ([#11456](https://github.com/dynamic-labs/dynamic-auth/issues/11456)) ([81b0161](https://github.com/dynamic-labs/dynamic-auth/commit/81b01617810af8f7f996fdbf406e020b9f98272b))
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Bug Fixes
|
|
11
|
+
|
|
12
|
+
* **starknet:** zero-pad addresses returned by wallet connectors ([#11303](https://github.com/dynamic-labs/dynamic-auth/issues/11303)) ([ef5cda5](https://github.com/dynamic-labs/dynamic-auth/commit/ef5cda5a9933443195b3bd336db8947c2ec050b7))
|
|
13
|
+
|
|
14
|
+
### [4.87.2](https://github.com/dynamic-labs/dynamic-auth/compare/v4.87.1...v4.87.2) (2026-06-03)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* allow for using v2 zerodev projects ([#11449](https://github.com/dynamic-labs/dynamic-auth/issues/11449)) ([9242698](https://github.com/dynamic-labs/dynamic-auth/commit/9242698670db92b03ad1afc776e674ec9a7e7e54))
|
|
20
|
+
* e2e: ensure MFA item is detached before logout ([#11452](https://github.com/dynamic-labs/dynamic-auth/issues/11452)) ([5a4c67e](https://github.com/dynamic-labs/dynamic-auth/commit/5a4c67e93b66a548346c1065fb373c675f0054a0))
|
|
21
|
+
|
|
2
22
|
### [4.87.1](https://github.com/dynamic-labs/dynamic-auth/compare/v4.87.0...v4.87.1) (2026-06-03)
|
|
3
23
|
|
|
4
24
|
|
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.88.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"author": "Dynamic Labs, Inc.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -16,18 +16,18 @@
|
|
|
16
16
|
"./package.json": "./package.json"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@dynamic-labs-sdk/client": "1.
|
|
20
|
-
"@dynamic-labs/assert-package-version": "4.
|
|
19
|
+
"@dynamic-labs-sdk/client": "1.7.0",
|
|
20
|
+
"@dynamic-labs/assert-package-version": "4.88.0",
|
|
21
21
|
"@dynamic-labs/sdk-api-core": "0.0.1015",
|
|
22
|
-
"@dynamic-labs-wallet/browser-wallet-client": "1.0.
|
|
22
|
+
"@dynamic-labs-wallet/browser-wallet-client": "1.0.16",
|
|
23
23
|
"@dynamic-labs-wallet/forward-mpc-client": "0.10.1",
|
|
24
|
-
"@dynamic-labs/ethereum-core": "4.
|
|
25
|
-
"@dynamic-labs/logger": "4.
|
|
26
|
-
"@dynamic-labs/solana-core": "4.
|
|
27
|
-
"@dynamic-labs/sui-core": "4.
|
|
28
|
-
"@dynamic-labs/utils": "4.
|
|
29
|
-
"@dynamic-labs/wallet-book": "4.
|
|
30
|
-
"@dynamic-labs/wallet-connector-core": "4.
|
|
24
|
+
"@dynamic-labs/ethereum-core": "4.88.0",
|
|
25
|
+
"@dynamic-labs/logger": "4.88.0",
|
|
26
|
+
"@dynamic-labs/solana-core": "4.88.0",
|
|
27
|
+
"@dynamic-labs/sui-core": "4.88.0",
|
|
28
|
+
"@dynamic-labs/utils": "4.88.0",
|
|
29
|
+
"@dynamic-labs/wallet-book": "4.88.0",
|
|
30
|
+
"@dynamic-labs/wallet-connector-core": "4.88.0"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {}
|
|
33
33
|
}
|
package/src/DynamicWaasMixin.cjs
CHANGED
|
@@ -32,6 +32,9 @@ const withDynamicWaas = (BaseClass) => {
|
|
|
32
32
|
setGetAuthTokenFunction(getAuthToken) {
|
|
33
33
|
this.getAuthToken = getAuthToken;
|
|
34
34
|
}
|
|
35
|
+
setOnUnauthorizedFunction(onUnauthorized) {
|
|
36
|
+
this.onUnauthorized = onUnauthorized;
|
|
37
|
+
}
|
|
35
38
|
setWaasAuthMode(authMode) {
|
|
36
39
|
this.authMode = authMode;
|
|
37
40
|
}
|
|
@@ -190,10 +193,12 @@ const withDynamicWaas = (BaseClass) => {
|
|
|
190
193
|
chainName: this.chainName,
|
|
191
194
|
environmentId: this.environmentId,
|
|
192
195
|
sdkVersion: _package.version,
|
|
193
|
-
}, Object.assign(Object.assign({}, (utils.PlatformService.isWaasSecureStorageSupported
|
|
196
|
+
}, Object.assign(Object.assign(Object.assign({}, (utils.PlatformService.isWaasSecureStorageSupported
|
|
194
197
|
? { secureStorage: createWaasClientSecureStorage.createWaasClientSecureStorage() }
|
|
195
198
|
: {})), (this.getSignedSessionId
|
|
196
199
|
? { getSignedSessionId: this.getSignedSessionId }
|
|
200
|
+
: {})), (this.onUnauthorized
|
|
201
|
+
? { onUnauthorized: this.onUnauthorized }
|
|
197
202
|
: {})));
|
|
198
203
|
this.instrumentAsync({
|
|
199
204
|
context: traceContext,
|
|
@@ -311,7 +316,7 @@ const withDynamicWaas = (BaseClass) => {
|
|
|
311
316
|
});
|
|
312
317
|
}
|
|
313
318
|
backupKeySharesToGoogleDrive(_a) {
|
|
314
|
-
return _tslib.__awaiter(this, arguments, void 0, function* ({ accountAddress, password, }) {
|
|
319
|
+
return _tslib.__awaiter(this, arguments, void 0, function* ({ accountAddress, password, googleDriveAccessToken, }) {
|
|
315
320
|
var _b, _c;
|
|
316
321
|
if (!accountAddress) {
|
|
317
322
|
throw new utils.DynamicError('Account address is required');
|
|
@@ -325,6 +330,7 @@ const withDynamicWaas = (BaseClass) => {
|
|
|
325
330
|
return walletClient.backupKeySharesToGoogleDrive({
|
|
326
331
|
accountAddress,
|
|
327
332
|
authToken: (_c = this.getAuthToken) === null || _c === void 0 ? void 0 : _c.call(this),
|
|
333
|
+
googleDriveAccessToken,
|
|
328
334
|
password: resolvedPassword,
|
|
329
335
|
signedSessionId,
|
|
330
336
|
});
|
|
@@ -23,6 +23,7 @@ export declare const withDynamicWaas: <T extends abstract new (...args: any[]) =
|
|
|
23
23
|
getElevatedAccessToken?: ((props: {
|
|
24
24
|
scope: TokenScope;
|
|
25
25
|
}) => Promise<string | undefined>) | undefined;
|
|
26
|
+
onUnauthorized?: (() => void | Promise<void>) | undefined;
|
|
26
27
|
environmentId?: string | undefined;
|
|
27
28
|
baseApiUrl?: string | undefined;
|
|
28
29
|
relayUrl?: string | undefined;
|
|
@@ -34,6 +35,7 @@ export declare const withDynamicWaas: <T extends abstract new (...args: any[]) =
|
|
|
34
35
|
__exportHandler: WaasExportHandler;
|
|
35
36
|
validateActiveWallet(expectedAddress: string): Promise<void>;
|
|
36
37
|
setGetAuthTokenFunction(getAuthToken: () => string): void;
|
|
38
|
+
setOnUnauthorizedFunction(onUnauthorized: () => void | Promise<void>): void;
|
|
37
39
|
setWaasAuthMode(authMode: 'cookie' | 'header'): void;
|
|
38
40
|
setGetMfaTokenFunction(getMfaToken: (props?: {
|
|
39
41
|
mfaAction?: MFAAction;
|
|
@@ -105,9 +107,10 @@ export declare const withDynamicWaas: <T extends abstract new (...args: any[]) =
|
|
|
105
107
|
accountAddress: string;
|
|
106
108
|
password?: string;
|
|
107
109
|
}): Promise<void>;
|
|
108
|
-
backupKeySharesToGoogleDrive({ accountAddress, password, }: {
|
|
110
|
+
backupKeySharesToGoogleDrive({ accountAddress, password, googleDriveAccessToken, }: {
|
|
109
111
|
accountAddress: string;
|
|
110
112
|
password?: string;
|
|
113
|
+
googleDriveAccessToken?: string;
|
|
111
114
|
}): Promise<void>;
|
|
112
115
|
exportClientKeysharesFromGoogleDrive({ accountAddress, password, }: {
|
|
113
116
|
accountAddress: string;
|
package/src/DynamicWaasMixin.js
CHANGED
|
@@ -28,6 +28,9 @@ const withDynamicWaas = (BaseClass) => {
|
|
|
28
28
|
setGetAuthTokenFunction(getAuthToken) {
|
|
29
29
|
this.getAuthToken = getAuthToken;
|
|
30
30
|
}
|
|
31
|
+
setOnUnauthorizedFunction(onUnauthorized) {
|
|
32
|
+
this.onUnauthorized = onUnauthorized;
|
|
33
|
+
}
|
|
31
34
|
setWaasAuthMode(authMode) {
|
|
32
35
|
this.authMode = authMode;
|
|
33
36
|
}
|
|
@@ -186,10 +189,12 @@ const withDynamicWaas = (BaseClass) => {
|
|
|
186
189
|
chainName: this.chainName,
|
|
187
190
|
environmentId: this.environmentId,
|
|
188
191
|
sdkVersion: version,
|
|
189
|
-
}, Object.assign(Object.assign({}, (PlatformService.isWaasSecureStorageSupported
|
|
192
|
+
}, Object.assign(Object.assign(Object.assign({}, (PlatformService.isWaasSecureStorageSupported
|
|
190
193
|
? { secureStorage: createWaasClientSecureStorage() }
|
|
191
194
|
: {})), (this.getSignedSessionId
|
|
192
195
|
? { getSignedSessionId: this.getSignedSessionId }
|
|
196
|
+
: {})), (this.onUnauthorized
|
|
197
|
+
? { onUnauthorized: this.onUnauthorized }
|
|
193
198
|
: {})));
|
|
194
199
|
this.instrumentAsync({
|
|
195
200
|
context: traceContext,
|
|
@@ -307,7 +312,7 @@ const withDynamicWaas = (BaseClass) => {
|
|
|
307
312
|
});
|
|
308
313
|
}
|
|
309
314
|
backupKeySharesToGoogleDrive(_a) {
|
|
310
|
-
return __awaiter(this, arguments, void 0, function* ({ accountAddress, password, }) {
|
|
315
|
+
return __awaiter(this, arguments, void 0, function* ({ accountAddress, password, googleDriveAccessToken, }) {
|
|
311
316
|
var _b, _c;
|
|
312
317
|
if (!accountAddress) {
|
|
313
318
|
throw new DynamicError('Account address is required');
|
|
@@ -321,6 +326,7 @@ const withDynamicWaas = (BaseClass) => {
|
|
|
321
326
|
return walletClient.backupKeySharesToGoogleDrive({
|
|
322
327
|
accountAddress,
|
|
323
328
|
authToken: (_c = this.getAuthToken) === null || _c === void 0 ? void 0 : _c.call(this),
|
|
329
|
+
googleDriveAccessToken,
|
|
324
330
|
password: resolvedPassword,
|
|
325
331
|
signedSessionId,
|
|
326
332
|
});
|