@dynamic-labs/embedded-wallet 3.1.4 → 3.2.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 +13 -1
- package/package.json +6 -6
- package/src/index.cjs +2 -1
- package/src/index.js +1 -1
- package/src/lib/constants.cjs +6 -3
- package/src/lib/constants.d.ts +2 -1
- package/src/lib/constants.js +5 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,16 @@
|
|
|
1
1
|
|
|
2
|
+
## [3.2.0](https://github.com/dynamic-labs/DynamicAuth/compare/v3.1.4...v3.2.0) (2024-10-02)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
* view global connectivity connections and allow disconnection ([#7037](https://github.com/dynamic-labs/DynamicAuth/issues/7037)) ([6d7c2ba](https://github.com/dynamic-labs/DynamicAuth/commit/6d7c2baf2d1480e30e1394547635f0f1e7c47509))
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Bug Fixes
|
|
11
|
+
|
|
12
|
+
* ensure the correct auth mode is used on social redirect ([#7047](https://github.com/dynamic-labs/DynamicAuth/issues/7047)) ([#7055](https://github.com/dynamic-labs/DynamicAuth/issues/7055)) ([b83ee70](https://github.com/dynamic-labs/DynamicAuth/commit/b83ee702fede980dad9641ad08453fc20ba1b6bb))
|
|
13
|
+
|
|
2
14
|
### [3.1.4](https://github.com/dynamic-labs/DynamicAuth/compare/v3.1.3...v3.1.4) (2024-09-30)
|
|
3
15
|
|
|
4
16
|
|
|
@@ -890,7 +902,7 @@
|
|
|
890
902
|
|
|
891
903
|
- React Native - You can now build mobile-first onboarding experiences with the same Dynamic magic but for React Native, get started [here](https://docs.dynamic.xyz/react-native/introduction)
|
|
892
904
|
|
|
893
|
-
- Cookie Authentication - Dynamic can now be configured to set a secure, HttpOnly cookie that can be used for authenticating with Dynamic’s backend. This will contain a minified version of our JWT token.
|
|
905
|
+
- Cookie Authentication - Dynamic can now be configured to set a secure, HttpOnly cookie that can be used for authenticating with Dynamic’s backend. This will contain a minified version of our JWT token.
|
|
894
906
|
|
|
895
907
|
|
|
896
908
|
## Improvements
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs/embedded-wallet",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.2.0",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/dynamic-labs/dynamic-auth.git",
|
|
@@ -31,11 +31,11 @@
|
|
|
31
31
|
"@turnkey/http": "2.12.2",
|
|
32
32
|
"@turnkey/iframe-stamper": "2.0.0",
|
|
33
33
|
"@turnkey/webauthn-stamper": "0.5.0",
|
|
34
|
-
"@dynamic-labs/logger": "3.
|
|
35
|
-
"@dynamic-labs/utils": "3.
|
|
36
|
-
"@dynamic-labs/wallet-book": "3.
|
|
37
|
-
"@dynamic-labs/wallet-connector-core": "3.
|
|
38
|
-
"@dynamic-labs/webauthn": "3.
|
|
34
|
+
"@dynamic-labs/logger": "3.2.0",
|
|
35
|
+
"@dynamic-labs/utils": "3.2.0",
|
|
36
|
+
"@dynamic-labs/wallet-book": "3.2.0",
|
|
37
|
+
"@dynamic-labs/wallet-connector-core": "3.2.0",
|
|
38
|
+
"@dynamic-labs/webauthn": "3.2.0"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {}
|
|
41
41
|
}
|
package/src/index.cjs
CHANGED
|
@@ -23,11 +23,12 @@ exports.findTurnkeyVerifiedCredentialsWithSmartWalletRef = findTurnkeyVerifiedCr
|
|
|
23
23
|
exports.logger = logger.logger;
|
|
24
24
|
exports.turnkeyAuthenticatorRecoveryHandler = TurnkeyAuthenticatorRecoveryHandler.turnkeyAuthenticatorRecoveryHandler;
|
|
25
25
|
exports.ExportHandler = ExportHandler.ExportHandler;
|
|
26
|
-
exports.
|
|
26
|
+
exports.INVALID_PASSKEY_SELECTED_ERROR_MESSAGE = constants.INVALID_PASSKEY_SELECTED_ERROR_MESSAGE;
|
|
27
27
|
exports.TURNKEY_API_BASE_URL = constants.TURNKEY_API_BASE_URL;
|
|
28
28
|
exports.TURNKEY_API_KEY_EXPIRY_MESSAGE = constants.TURNKEY_API_KEY_EXPIRY_MESSAGE;
|
|
29
29
|
exports.TURNKEY_API_KEY_NOT_FOUND_MESSAGE = constants.TURNKEY_API_KEY_NOT_FOUND_MESSAGE;
|
|
30
30
|
exports.TURNKEY_SDK_BENIGN_ERRORS = constants.TURNKEY_SDK_BENIGN_ERRORS;
|
|
31
31
|
exports.TURNKEY_SDK_SESSION_KEY_RETRYABLE_ERRORS = constants.TURNKEY_SDK_SESSION_KEY_RETRYABLE_ERRORS;
|
|
32
|
+
exports.USER_CANCELLED_REQUEST_ERROR_MESSAGE = constants.USER_CANCELLED_REQUEST_ERROR_MESSAGE;
|
|
32
33
|
exports.WEBAUTHN_NOT_SUPPORTED_OR_CANCELLED_ERROR_MESSAGE = constants.WEBAUTHN_NOT_SUPPORTED_OR_CANCELLED_ERROR_MESSAGE;
|
|
33
34
|
exports.WEBAUTHN_NOT_SUPPORTED_OR_DISABLED_ERROR_MESSAGE = constants.WEBAUTHN_NOT_SUPPORTED_OR_DISABLED_ERROR_MESSAGE;
|
package/src/index.js
CHANGED
|
@@ -7,4 +7,4 @@ import './lib/utils/convertAttestationTransports/convertAttestationTransports.js
|
|
|
7
7
|
export { logger } from './lib/utils/logger/logger.js';
|
|
8
8
|
export { turnkeyAuthenticatorRecoveryHandler } from './lib/AuthenticatorHandler/TurnkeyAuthenticatorRecoveryHandler.js';
|
|
9
9
|
export { ExportHandler } from './lib/ExportHandler/ExportHandler.js';
|
|
10
|
-
export {
|
|
10
|
+
export { INVALID_PASSKEY_SELECTED_ERROR_MESSAGE, TURNKEY_API_BASE_URL, TURNKEY_API_KEY_EXPIRY_MESSAGE, TURNKEY_API_KEY_NOT_FOUND_MESSAGE, TURNKEY_SDK_BENIGN_ERRORS, TURNKEY_SDK_SESSION_KEY_RETRYABLE_ERRORS, USER_CANCELLED_REQUEST_ERROR_MESSAGE, WEBAUTHN_NOT_SUPPORTED_OR_CANCELLED_ERROR_MESSAGE, WEBAUTHN_NOT_SUPPORTED_OR_DISABLED_ERROR_MESSAGE } from './lib/constants.js';
|
package/src/lib/constants.cjs
CHANGED
|
@@ -8,7 +8,8 @@ const TURNKEY_API_KEY_EXPIRY_MESSAGE = 'Turnkey error 16: expired api key';
|
|
|
8
8
|
const TURNKEY_API_KEY_NOT_FOUND_MESSAGE = 'Turnkey error 16: could not find public key';
|
|
9
9
|
const WEBAUTHN_NOT_SUPPORTED_OR_CANCELLED_ERROR_MESSAGE = 'The operation either timed out or was not allowed';
|
|
10
10
|
const WEBAUTHN_NOT_SUPPORTED_OR_DISABLED_ERROR_MESSAGE = 'The request is not allowed by the user agent or the platform in the current context, possibly because the user denied permission.';
|
|
11
|
-
const
|
|
11
|
+
const INVALID_PASSKEY_SELECTED_ERROR_MESSAGE = 'Turnkey error 5: webauthn authenticator not found in organization or parent organization';
|
|
12
|
+
const USER_CANCELLED_REQUEST_ERROR_MESSAGE = 'The user cancelled the request';
|
|
12
13
|
const TURNKEY_SDK_SESSION_KEY_RETRYABLE_ERRORS = [
|
|
13
14
|
TURNKEY_API_KEY_EXPIRY_MESSAGE,
|
|
14
15
|
TURNKEY_API_KEY_NOT_FOUND_MESSAGE,
|
|
@@ -16,14 +17,16 @@ const TURNKEY_SDK_SESSION_KEY_RETRYABLE_ERRORS = [
|
|
|
16
17
|
const TURNKEY_SDK_BENIGN_ERRORS = [
|
|
17
18
|
WEBAUTHN_NOT_SUPPORTED_OR_CANCELLED_ERROR_MESSAGE,
|
|
18
19
|
WEBAUTHN_NOT_SUPPORTED_OR_DISABLED_ERROR_MESSAGE,
|
|
19
|
-
|
|
20
|
+
INVALID_PASSKEY_SELECTED_ERROR_MESSAGE,
|
|
21
|
+
USER_CANCELLED_REQUEST_ERROR_MESSAGE,
|
|
20
22
|
];
|
|
21
23
|
|
|
22
|
-
exports.
|
|
24
|
+
exports.INVALID_PASSKEY_SELECTED_ERROR_MESSAGE = INVALID_PASSKEY_SELECTED_ERROR_MESSAGE;
|
|
23
25
|
exports.TURNKEY_API_BASE_URL = TURNKEY_API_BASE_URL;
|
|
24
26
|
exports.TURNKEY_API_KEY_EXPIRY_MESSAGE = TURNKEY_API_KEY_EXPIRY_MESSAGE;
|
|
25
27
|
exports.TURNKEY_API_KEY_NOT_FOUND_MESSAGE = TURNKEY_API_KEY_NOT_FOUND_MESSAGE;
|
|
26
28
|
exports.TURNKEY_SDK_BENIGN_ERRORS = TURNKEY_SDK_BENIGN_ERRORS;
|
|
27
29
|
exports.TURNKEY_SDK_SESSION_KEY_RETRYABLE_ERRORS = TURNKEY_SDK_SESSION_KEY_RETRYABLE_ERRORS;
|
|
30
|
+
exports.USER_CANCELLED_REQUEST_ERROR_MESSAGE = USER_CANCELLED_REQUEST_ERROR_MESSAGE;
|
|
28
31
|
exports.WEBAUTHN_NOT_SUPPORTED_OR_CANCELLED_ERROR_MESSAGE = WEBAUTHN_NOT_SUPPORTED_OR_CANCELLED_ERROR_MESSAGE;
|
|
29
32
|
exports.WEBAUTHN_NOT_SUPPORTED_OR_DISABLED_ERROR_MESSAGE = WEBAUTHN_NOT_SUPPORTED_OR_DISABLED_ERROR_MESSAGE;
|
package/src/lib/constants.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ export declare const TURNKEY_API_KEY_EXPIRY_MESSAGE = "Turnkey error 16: expired
|
|
|
3
3
|
export declare const TURNKEY_API_KEY_NOT_FOUND_MESSAGE = "Turnkey error 16: could not find public key";
|
|
4
4
|
export declare const WEBAUTHN_NOT_SUPPORTED_OR_CANCELLED_ERROR_MESSAGE = "The operation either timed out or was not allowed";
|
|
5
5
|
export declare const WEBAUTHN_NOT_SUPPORTED_OR_DISABLED_ERROR_MESSAGE = "The request is not allowed by the user agent or the platform in the current context, possibly because the user denied permission.";
|
|
6
|
-
export declare const
|
|
6
|
+
export declare const INVALID_PASSKEY_SELECTED_ERROR_MESSAGE = "Turnkey error 5: webauthn authenticator not found in organization or parent organization";
|
|
7
|
+
export declare const USER_CANCELLED_REQUEST_ERROR_MESSAGE = "The user cancelled the request";
|
|
7
8
|
export declare const TURNKEY_SDK_SESSION_KEY_RETRYABLE_ERRORS: string[];
|
|
8
9
|
export declare const TURNKEY_SDK_BENIGN_ERRORS: string[];
|
package/src/lib/constants.js
CHANGED
|
@@ -4,7 +4,8 @@ const TURNKEY_API_KEY_EXPIRY_MESSAGE = 'Turnkey error 16: expired api key';
|
|
|
4
4
|
const TURNKEY_API_KEY_NOT_FOUND_MESSAGE = 'Turnkey error 16: could not find public key';
|
|
5
5
|
const WEBAUTHN_NOT_SUPPORTED_OR_CANCELLED_ERROR_MESSAGE = 'The operation either timed out or was not allowed';
|
|
6
6
|
const WEBAUTHN_NOT_SUPPORTED_OR_DISABLED_ERROR_MESSAGE = 'The request is not allowed by the user agent or the platform in the current context, possibly because the user denied permission.';
|
|
7
|
-
const
|
|
7
|
+
const INVALID_PASSKEY_SELECTED_ERROR_MESSAGE = 'Turnkey error 5: webauthn authenticator not found in organization or parent organization';
|
|
8
|
+
const USER_CANCELLED_REQUEST_ERROR_MESSAGE = 'The user cancelled the request';
|
|
8
9
|
const TURNKEY_SDK_SESSION_KEY_RETRYABLE_ERRORS = [
|
|
9
10
|
TURNKEY_API_KEY_EXPIRY_MESSAGE,
|
|
10
11
|
TURNKEY_API_KEY_NOT_FOUND_MESSAGE,
|
|
@@ -12,7 +13,8 @@ const TURNKEY_SDK_SESSION_KEY_RETRYABLE_ERRORS = [
|
|
|
12
13
|
const TURNKEY_SDK_BENIGN_ERRORS = [
|
|
13
14
|
WEBAUTHN_NOT_SUPPORTED_OR_CANCELLED_ERROR_MESSAGE,
|
|
14
15
|
WEBAUTHN_NOT_SUPPORTED_OR_DISABLED_ERROR_MESSAGE,
|
|
15
|
-
|
|
16
|
+
INVALID_PASSKEY_SELECTED_ERROR_MESSAGE,
|
|
17
|
+
USER_CANCELLED_REQUEST_ERROR_MESSAGE,
|
|
16
18
|
];
|
|
17
19
|
|
|
18
|
-
export {
|
|
20
|
+
export { INVALID_PASSKEY_SELECTED_ERROR_MESSAGE, TURNKEY_API_BASE_URL, TURNKEY_API_KEY_EXPIRY_MESSAGE, TURNKEY_API_KEY_NOT_FOUND_MESSAGE, TURNKEY_SDK_BENIGN_ERRORS, TURNKEY_SDK_SESSION_KEY_RETRYABLE_ERRORS, USER_CANCELLED_REQUEST_ERROR_MESSAGE, WEBAUTHN_NOT_SUPPORTED_OR_CANCELLED_ERROR_MESSAGE, WEBAUTHN_NOT_SUPPORTED_OR_DISABLED_ERROR_MESSAGE };
|