@dynamic-labs/embedded-wallet 3.0.0-alpha.34 → 3.0.0-alpha.36

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 CHANGED
@@ -1,4 +1,20 @@
1
1
 
2
+ ## [3.0.0-alpha.36](https://github.com/dynamic-labs/DynamicAuth/compare/v3.0.0-alpha.35...v3.0.0-alpha.36) (2024-08-06)
3
+
4
+
5
+ ### Bug Fixes
6
+
7
+ * emb wallet export with silent signing ([#6493](https://github.com/dynamic-labs/DynamicAuth/issues/6493)) ([af69c3a](https://github.com/dynamic-labs/DynamicAuth/commit/af69c3a85d8c1db6a0bf9b42c1310bf3183f9360))
8
+ * use correct redirect url override when connecting with social ([#6502](https://github.com/dynamic-labs/DynamicAuth/issues/6502)) ([e27a0de](https://github.com/dynamic-labs/DynamicAuth/commit/e27a0ded2ad2d95b80a2ad354accaf57f5228691))
9
+ * wagmi account sync issues when switching wallets ([#6441](https://github.com/dynamic-labs/DynamicAuth/issues/6441)) ([4536f88](https://github.com/dynamic-labs/DynamicAuth/commit/4536f88d41bf4a30cf114e8cd7efd7a211c00889))
10
+
11
+ ## [3.0.0-alpha.35](https://github.com/dynamic-labs/DynamicAuth/compare/v3.0.0-alpha.34...v3.0.0-alpha.35) (2024-08-06)
12
+
13
+
14
+ ### Bug Fixes
15
+
16
+ * allow mfa sync to rerun after logout ([#6503](https://github.com/dynamic-labs/DynamicAuth/issues/6503)) ([74377e8](https://github.com/dynamic-labs/DynamicAuth/commit/74377e844a84da422173289a10561eb7acf4f8b9))
17
+
2
18
  ## [3.0.0-alpha.34](https://github.com/dynamic-labs/DynamicAuth/compare/v3.0.0-alpha.33...v3.0.0-alpha.34) (2024-08-02)
3
19
 
4
20
  ## [3.0.0-alpha.33](https://github.com/dynamic-labs/DynamicAuth/compare/v3.0.0-alpha.32...v3.0.0-alpha.33) (2024-08-02)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/embedded-wallet",
3
- "version": "3.0.0-alpha.34",
3
+ "version": "3.0.0-alpha.36",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/dynamic-labs/dynamic-auth.git",
@@ -26,15 +26,15 @@
26
26
  "./package.json": "./package.json"
27
27
  },
28
28
  "dependencies": {
29
- "@dynamic-labs/sdk-api-core": "0.0.506",
29
+ "@dynamic-labs/sdk-api-core": "0.0.509",
30
30
  "@turnkey/api-key-stamper": "0.4.0",
31
31
  "@turnkey/http": "2.7.1",
32
32
  "@turnkey/iframe-stamper": "2.0.0",
33
33
  "@turnkey/webauthn-stamper": "0.5.0",
34
- "@dynamic-labs/logger": "3.0.0-alpha.34",
35
- "@dynamic-labs/utils": "3.0.0-alpha.34",
36
- "@dynamic-labs/wallet-book": "3.0.0-alpha.34",
37
- "@dynamic-labs/wallet-connector-core": "3.0.0-alpha.34"
34
+ "@dynamic-labs/logger": "3.0.0-alpha.36",
35
+ "@dynamic-labs/utils": "3.0.0-alpha.36",
36
+ "@dynamic-labs/wallet-book": "3.0.0-alpha.36",
37
+ "@dynamic-labs/wallet-connector-core": "3.0.0-alpha.36"
38
38
  },
39
39
  "peerDependencies": {}
40
40
  }
@@ -220,6 +220,17 @@ class TurnkeyWalletConnectorBase extends walletConnectorCore.WalletConnectorBase
220
220
  var _a, _b, _c;
221
221
  logger.logger.setMetaData('turnkeySubOrganizationId', (_b = (_a = this._verifiedCredential) === null || _a === void 0 ? void 0 : _a.walletProperties) === null || _b === void 0 ? void 0 : _b.turnkeySubOrganizationId);
222
222
  logger.logger.setMetaData('walletId', (_c = this._verifiedCredential) === null || _c === void 0 ? void 0 : _c.id);
223
+ let authMethod = 'Unknown';
224
+ if (this.isSessionKeyCompatible()) {
225
+ authMethod = 'SessionKeys';
226
+ }
227
+ else if (this.__authenticatorMethodHandler.recoveryType === 'passkey') {
228
+ authMethod = 'Passkey';
229
+ }
230
+ else if (this.__authenticatorMethodHandler.recoveryType === 'email') {
231
+ authMethod = 'EmailAuth';
232
+ }
233
+ logger.logger.setMetaData('authMethod', authMethod);
223
234
  }
224
235
  }
225
236
  TurnkeyWalletConnectorBase.isLoadingSession = false;
@@ -216,6 +216,17 @@ class TurnkeyWalletConnectorBase extends WalletConnectorBase {
216
216
  var _a, _b, _c;
217
217
  logger.setMetaData('turnkeySubOrganizationId', (_b = (_a = this._verifiedCredential) === null || _a === void 0 ? void 0 : _a.walletProperties) === null || _b === void 0 ? void 0 : _b.turnkeySubOrganizationId);
218
218
  logger.setMetaData('walletId', (_c = this._verifiedCredential) === null || _c === void 0 ? void 0 : _c.id);
219
+ let authMethod = 'Unknown';
220
+ if (this.isSessionKeyCompatible()) {
221
+ authMethod = 'SessionKeys';
222
+ }
223
+ else if (this.__authenticatorMethodHandler.recoveryType === 'passkey') {
224
+ authMethod = 'Passkey';
225
+ }
226
+ else if (this.__authenticatorMethodHandler.recoveryType === 'email') {
227
+ authMethod = 'EmailAuth';
228
+ }
229
+ logger.setMetaData('authMethod', authMethod);
219
230
  }
220
231
  }
221
232
  TurnkeyWalletConnectorBase.isLoadingSession = false;