@dynamic-labs/client 4.67.1 → 4.67.3-device-registration.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 +29 -0
- package/package.cjs +1 -1
- package/package.js +1 -1
- package/package.json +9 -9
- package/src/client/client.cjs +3 -0
- package/src/client/client.d.ts +2 -0
- package/src/client/client.js +3 -0
- package/src/index.d.ts +2 -1
- package/src/modules/deviceRegistrationModule/deviceRegistrationModule.cjs +26 -0
- package/src/modules/deviceRegistrationModule/deviceRegistrationModule.d.ts +11 -0
- package/src/modules/deviceRegistrationModule/deviceRegistrationModule.js +22 -0
- package/src/modules/deviceRegistrationModule/index.d.ts +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,33 @@
|
|
|
1
1
|
|
|
2
|
+
### [4.67.3-device-registration.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.67.2...v4.67.3-device-registration.0) (2026-03-19)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
* add device registration icons ([#10637](https://github.com/dynamic-labs/dynamic-auth/issues/10637)) ([01bfe15](https://github.com/dynamic-labs/dynamic-auth/commit/01bfe155722111f321d289629bed95e8b9e4344d))
|
|
8
|
+
* add DeviceRegistrationView ([#10638](https://github.com/dynamic-labs/dynamic-auth/issues/10638)) ([11ccbbc](https://github.com/dynamic-labs/dynamic-auth/commit/11ccbbcc5cfaeab9fbeb01c040225a731137b465))
|
|
9
|
+
* add Prompt MFA and Prompt Reauthenticate to Step Up Auth methods ([#10645](https://github.com/dynamic-labs/dynamic-auth/issues/10645)) ([c97d8ee](https://github.com/dynamic-labs/dynamic-auth/commit/c97d8ee27f48d376259a921b01d151b4cf7fa27b))
|
|
10
|
+
* add step-up auth for email and SMS credential updates ([#10676](https://github.com/dynamic-labs/dynamic-auth/issues/10676)) ([4c7f0a5](https://github.com/dynamic-labs/dynamic-auth/commit/4c7f0a5330e557aea4db85359f7ac10d3c7545a5))
|
|
11
|
+
* add step-up auth for wallet link and unlink ([#10678](https://github.com/dynamic-labs/dynamic-auth/issues/10678)) ([8a015ca](https://github.com/dynamic-labs/dynamic-auth/commit/8a015ca0fd0bda71559c21b811b7e6acb43a7909))
|
|
12
|
+
* add TrustedDevicesSection and ManageTrustedDevicesView ([#10639](https://github.com/dynamic-labs/dynamic-auth/issues/10639)) ([17df870](https://github.com/dynamic-labs/dynamic-auth/commit/17df870caa34a8428d65510e5b3c9e9c7b93cea2))
|
|
13
|
+
* add useSyncDeviceRegistrationFlow ([#10640](https://github.com/dynamic-labs/dynamic-auth/issues/10640)) ([8c7752d](https://github.com/dynamic-labs/dynamic-auth/commit/8c7752d7a8afedaa3cc99fad83091586f7b6107e))
|
|
14
|
+
* **sdk-react-core:** prompt step-up auth before export private key ([#10647](https://github.com/dynamic-labs/dynamic-auth/issues/10647)) ([a39d886](https://github.com/dynamic-labs/dynamic-auth/commit/a39d88643af83484aae09332adcd05df8c0f923c))
|
|
15
|
+
* **step-up:** reauth flow with signInCredentialId and choose-method UI ([#10644](https://github.com/dynamic-labs/dynamic-auth/issues/10644)) ([086a97f](https://github.com/dynamic-labs/dynamic-auth/commit/086a97f27d908780b17f49f8a85ce88c34f61ed8))
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Bug Fixes
|
|
19
|
+
|
|
20
|
+
* close auth flow on re-login when user already has embedded wallets ([#10641](https://github.com/dynamic-labs/dynamic-auth/issues/10641)) ([1aab930](https://github.com/dynamic-labs/dynamic-auth/commit/1aab9307c904f79bc0534026547fc112c55f6dc9))
|
|
21
|
+
* remove WalletConnect QR code fallback for Solflare wallet ([#10627](https://github.com/dynamic-labs/dynamic-auth/issues/10627)) ([6d83ead](https://github.com/dynamic-labs/dynamic-auth/commit/6d83ead833f560ee3c22e12262300e58fe21caa1))
|
|
22
|
+
* sync logout state between SDKs ([#10646](https://github.com/dynamic-labs/dynamic-auth/issues/10646)) ([44d0183](https://github.com/dynamic-labs/dynamic-auth/commit/44d01831cc672c1c9f015dee4e4c54582fd9e36a))
|
|
23
|
+
|
|
24
|
+
### [4.67.2](https://github.com/dynamic-labs/dynamic-auth/compare/v4.67.1...v4.67.2) (2026-03-13)
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
### Bug Fixes
|
|
28
|
+
|
|
29
|
+
* add fallback connectors for all chains and fix wallet.chain mismatch for SUI wallets ([#10629](https://github.com/dynamic-labs/dynamic-auth/issues/10629)) ([dcdf5fc](https://github.com/dynamic-labs/dynamic-auth/commit/dcdf5fc5c424379cde2eecfd2d3b14fb6fe3819b))
|
|
30
|
+
|
|
2
31
|
### [4.67.1](https://github.com/dynamic-labs/dynamic-auth/compare/v4.67.0...v4.67.1) (2026-03-10)
|
|
3
32
|
|
|
4
33
|
|
package/package.cjs
CHANGED
package/package.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs/client",
|
|
3
|
-
"version": "4.67.
|
|
3
|
+
"version": "4.67.3-device-registration.0",
|
|
4
4
|
"description": "Core package for utilizing Dynamic's sdk",
|
|
5
5
|
"author": "Dynamic Labs, Inc.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -19,14 +19,14 @@
|
|
|
19
19
|
"homepage": "https://www.dynamic.xyz/",
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@vue/reactivity": "^3.4.21",
|
|
22
|
-
"@dynamic-labs/sdk-api-core": "0.0.
|
|
23
|
-
"@dynamic-labs/assert-package-version": "4.67.
|
|
24
|
-
"@dynamic-labs/locale": "4.67.
|
|
25
|
-
"@dynamic-labs/logger": "4.67.
|
|
26
|
-
"@dynamic-labs/message-transport": "4.67.
|
|
27
|
-
"@dynamic-labs/types": "4.67.
|
|
28
|
-
"@dynamic-labs/wallet-connector-core": "4.67.
|
|
29
|
-
"@dynamic-labs/webview-messages": "4.67.
|
|
22
|
+
"@dynamic-labs/sdk-api-core": "0.0.907",
|
|
23
|
+
"@dynamic-labs/assert-package-version": "4.67.3-device-registration.0",
|
|
24
|
+
"@dynamic-labs/locale": "4.67.3-device-registration.0",
|
|
25
|
+
"@dynamic-labs/logger": "4.67.3-device-registration.0",
|
|
26
|
+
"@dynamic-labs/message-transport": "4.67.3-device-registration.0",
|
|
27
|
+
"@dynamic-labs/types": "4.67.3-device-registration.0",
|
|
28
|
+
"@dynamic-labs/wallet-connector-core": "4.67.3-device-registration.0",
|
|
29
|
+
"@dynamic-labs/webview-messages": "4.67.3-device-registration.0",
|
|
30
30
|
"eventemitter3": "5.0.1"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {}
|
package/src/client/client.cjs
CHANGED
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
6
6
|
var logger = require('@dynamic-labs/logger');
|
|
7
7
|
var messageTransport = require('@dynamic-labs/message-transport');
|
|
8
8
|
var authModule = require('../modules/authModule/authModule.cjs');
|
|
9
|
+
var deviceRegistrationModule = require('../modules/deviceRegistrationModule/deviceRegistrationModule.cjs');
|
|
9
10
|
var instrumentationModule = require('../modules/instrumentationModule/instrumentationModule.cjs');
|
|
10
11
|
var localeModule = require('../modules/localeModule/localeModule.cjs');
|
|
11
12
|
var mfaModule = require('../modules/mfaModule/mfaModule.cjs');
|
|
@@ -40,6 +41,8 @@ const createClient = (props) => {
|
|
|
40
41
|
return {
|
|
41
42
|
/** Module that gives access over authentication state, such as the auth token and user */
|
|
42
43
|
auth: authModule.createAuthModule(core$1),
|
|
44
|
+
/** Module that provides access to device registration features */
|
|
45
|
+
deviceRegistration: deviceRegistrationModule.createDeviceRegistrationModule(core$1),
|
|
43
46
|
/** Module that provides locale/translation features */
|
|
44
47
|
locale: localeModule.createLocaleModule(core$1),
|
|
45
48
|
/** Module that provides access to MFA features */
|
package/src/client/client.d.ts
CHANGED
|
@@ -37,6 +37,8 @@ export type ClientProps = {
|
|
|
37
37
|
export declare const createClient: (props: ClientProps) => {
|
|
38
38
|
/** Module that gives access over authentication state, such as the auth token and user */
|
|
39
39
|
auth: import("../modules/authModule").AuthModule;
|
|
40
|
+
/** Module that provides access to device registration features */
|
|
41
|
+
deviceRegistration: import("../modules/deviceRegistrationModule").DeviceRegistrationModule;
|
|
40
42
|
/** Module that provides locale/translation features */
|
|
41
43
|
locale: {
|
|
42
44
|
changeLanguage: (lang: import("dist/packages/locale/src").Lang) => Promise<void>;
|
package/src/client/client.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import { Logger } from '@dynamic-labs/logger';
|
|
3
3
|
import { setGlobalDebugEnabled } from '@dynamic-labs/message-transport';
|
|
4
4
|
import { createAuthModule } from '../modules/authModule/authModule.js';
|
|
5
|
+
import { createDeviceRegistrationModule } from '../modules/deviceRegistrationModule/deviceRegistrationModule.js';
|
|
5
6
|
import { setupInstrumentationModule } from '../modules/instrumentationModule/instrumentationModule.js';
|
|
6
7
|
import { createLocaleModule } from '../modules/localeModule/localeModule.js';
|
|
7
8
|
import { createMfaModule } from '../modules/mfaModule/mfaModule.js';
|
|
@@ -36,6 +37,8 @@ const createClient = (props) => {
|
|
|
36
37
|
return {
|
|
37
38
|
/** Module that gives access over authentication state, such as the auth token and user */
|
|
38
39
|
auth: createAuthModule(core),
|
|
40
|
+
/** Module that provides access to device registration features */
|
|
41
|
+
deviceRegistration: createDeviceRegistrationModule(core),
|
|
39
42
|
/** Module that provides locale/translation features */
|
|
40
43
|
locale: createLocaleModule(core),
|
|
41
44
|
/** Module that provides access to MFA features */
|
package/src/index.d.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
export type { SocialProvider, UpdateUserReturnPayload, } from '@dynamic-labs/webview-messages';
|
|
1
|
+
export type { RegisteredDevice, SocialProvider, UpdateUserReturnPayload, } from '@dynamic-labs/webview-messages';
|
|
2
2
|
export { type Core } from './client/core';
|
|
3
3
|
export type { Wallet } from './types';
|
|
4
4
|
export { Extendable, type Extension } from './utils/Extendable';
|
|
5
5
|
export { hasExtension } from './utils/Extendable/hasExtension';
|
|
6
6
|
export { createClient, type BaseClient, type ClientProps, baseClientExtensionName, } from './client';
|
|
7
7
|
export type { AuthModule } from './modules/authModule';
|
|
8
|
+
export type { DeviceRegistrationModule } from './modules/deviceRegistrationModule';
|
|
8
9
|
export type { LocaleModule } from './modules/localeModule';
|
|
9
10
|
export type { MfaModule } from './modules/mfaModule';
|
|
10
11
|
export type { SdkModule } from './modules/sdkModule';
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
'use client'
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
|
+
|
|
6
|
+
var messageTransport = require('@dynamic-labs/message-transport');
|
|
7
|
+
var pickListenerActions = require('../../utils/pickListenerActions/pickListenerActions.cjs');
|
|
8
|
+
|
|
9
|
+
const createDeviceRegistrationModule = (core) => {
|
|
10
|
+
const store = messageTransport.createStore({
|
|
11
|
+
initialState: {
|
|
12
|
+
isDeviceRegistrationRequired: false,
|
|
13
|
+
},
|
|
14
|
+
key: 'deviceRegistration',
|
|
15
|
+
messageTransport: core.messageTransport,
|
|
16
|
+
});
|
|
17
|
+
const requestChannel = messageTransport.createRequestChannel(core.messageTransport);
|
|
18
|
+
const publicMethods = {
|
|
19
|
+
getRegisteredDevices: (...args) => requestChannel.request('getRegisteredDevices', ...args),
|
|
20
|
+
revokeAllRegisteredDevices: (...args) => requestChannel.request('revokeAllRegisteredDevices', ...args),
|
|
21
|
+
revokeRegisteredDevice: (...args) => requestChannel.request('revokeRegisteredDevice', ...args),
|
|
22
|
+
};
|
|
23
|
+
return Object.assign(store.getters, pickListenerActions.pickListenerActions(store.eventEmitter), publicMethods);
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
exports.createDeviceRegistrationModule = createDeviceRegistrationModule;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { StoreEventListeners } from '@dynamic-labs/message-transport';
|
|
2
|
+
import { DeviceRegistrationMessages, DeviceRegistrationModuleState } from '@dynamic-labs/webview-messages';
|
|
3
|
+
import { Core } from '../../client/core';
|
|
4
|
+
type DeviceRegistrationModulePublicMethods = {
|
|
5
|
+
getRegisteredDevices: DeviceRegistrationMessages['getRegisteredDevices'];
|
|
6
|
+
revokeRegisteredDevice: DeviceRegistrationMessages['revokeRegisteredDevice'];
|
|
7
|
+
revokeAllRegisteredDevices: DeviceRegistrationMessages['revokeAllRegisteredDevices'];
|
|
8
|
+
};
|
|
9
|
+
export type DeviceRegistrationModule = DeviceRegistrationModuleState & StoreEventListeners<DeviceRegistrationModuleState> & DeviceRegistrationModulePublicMethods;
|
|
10
|
+
export declare const createDeviceRegistrationModule: (core: Core) => DeviceRegistrationModule;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
'use client'
|
|
2
|
+
import { createStore, createRequestChannel } from '@dynamic-labs/message-transport';
|
|
3
|
+
import { pickListenerActions } from '../../utils/pickListenerActions/pickListenerActions.js';
|
|
4
|
+
|
|
5
|
+
const createDeviceRegistrationModule = (core) => {
|
|
6
|
+
const store = createStore({
|
|
7
|
+
initialState: {
|
|
8
|
+
isDeviceRegistrationRequired: false,
|
|
9
|
+
},
|
|
10
|
+
key: 'deviceRegistration',
|
|
11
|
+
messageTransport: core.messageTransport,
|
|
12
|
+
});
|
|
13
|
+
const requestChannel = createRequestChannel(core.messageTransport);
|
|
14
|
+
const publicMethods = {
|
|
15
|
+
getRegisteredDevices: (...args) => requestChannel.request('getRegisteredDevices', ...args),
|
|
16
|
+
revokeAllRegisteredDevices: (...args) => requestChannel.request('revokeAllRegisteredDevices', ...args),
|
|
17
|
+
revokeRegisteredDevice: (...args) => requestChannel.request('revokeRegisteredDevice', ...args),
|
|
18
|
+
};
|
|
19
|
+
return Object.assign(store.getters, pickListenerActions(store.eventEmitter), publicMethods);
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
export { createDeviceRegistrationModule };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { createDeviceRegistrationModule, type DeviceRegistrationModule, } from './deviceRegistrationModule';
|