@dynamic-labs/waas 4.87.2 → 4.88.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/CHANGELOG.md +19 -0
- package/package.cjs +1 -1
- package/package.js +1 -1
- package/package.json +11 -11
- package/src/DynamicWaasMixin.cjs +6 -1
- package/src/DynamicWaasMixin.d.ts +2 -0
- package/src/DynamicWaasMixin.js +6 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,23 @@
|
|
|
1
1
|
|
|
2
|
+
### [4.88.1](https://github.com/dynamic-labs/dynamic-auth/compare/v4.88.0...v4.88.1) (2026-06-04)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Bug Fixes
|
|
6
|
+
|
|
7
|
+
* **solana:** poll wallet-standard registry to catch late-injecting wallets ([#11464](https://github.com/dynamic-labs/dynamic-auth/issues/11464)) ([afa8ae7](https://github.com/dynamic-labs/dynamic-auth/commit/afa8ae785d7be58775addc4bb2db3dc1b5500f87))
|
|
8
|
+
|
|
9
|
+
## [4.88.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.87.2...v4.88.0) (2026-06-04)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Features
|
|
13
|
+
|
|
14
|
+
* **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))
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* **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))
|
|
20
|
+
|
|
2
21
|
### [4.87.2](https://github.com/dynamic-labs/dynamic-auth/compare/v4.87.1...v4.87.2) (2026-06-03)
|
|
3
22
|
|
|
4
23
|
|
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.1",
|
|
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.1",
|
|
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.1",
|
|
25
|
+
"@dynamic-labs/logger": "4.88.1",
|
|
26
|
+
"@dynamic-labs/solana-core": "4.88.1",
|
|
27
|
+
"@dynamic-labs/sui-core": "4.88.1",
|
|
28
|
+
"@dynamic-labs/utils": "4.88.1",
|
|
29
|
+
"@dynamic-labs/wallet-book": "4.88.1",
|
|
30
|
+
"@dynamic-labs/wallet-connector-core": "4.88.1"
|
|
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,
|
|
@@ -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;
|
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,
|