@dynamic-labs/client 4.24.0 → 4.25.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 +15 -0
- package/package.cjs +1 -1
- package/package.js +1 -1
- package/package.json +6 -6
- package/src/modules/authModule/authModule.cjs +2 -0
- package/src/modules/authModule/authModule.d.ts +2 -0
- package/src/modules/authModule/authModule.js +2 -0
- package/src/modules/authModule/passkeyAuthModule/index.d.ts +1 -0
- package/src/modules/authModule/passkeyAuthModule/passkeyAuthModule.cjs +15 -0
- package/src/modules/authModule/passkeyAuthModule/passkeyAuthModule.d.ts +8 -0
- package/src/modules/authModule/passkeyAuthModule/passkeyAuthModule.js +11 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,19 @@
|
|
|
1
1
|
|
|
2
|
+
## [4.25.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.24.0...v4.25.0) (2025-07-17)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
* add passkey 1fa to react native ([#9167](https://github.com/dynamic-labs/dynamic-auth/issues/9167)) ([8f9b166](https://github.com/dynamic-labs/dynamic-auth/commit/8f9b166de3e0ab329c1539597c350681f1254bfb))
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Bug Fixes
|
|
11
|
+
|
|
12
|
+
* add waas iframe retry ([#9185](https://github.com/dynamic-labs/dynamic-auth/issues/9185)) ([ebe40d5](https://github.com/dynamic-labs/dynamic-auth/commit/ebe40d5ecdf214362b013502b4ac1313ba356aeb))
|
|
13
|
+
* ensure storage service defaults to local storage ([#9182](https://github.com/dynamic-labs/dynamic-auth/issues/9182)) ([d6ce48e](https://github.com/dynamic-labs/dynamic-auth/commit/d6ce48e8c1d2edb32d8db41efe3f56b97275c32a))
|
|
14
|
+
* add account address to wallet properties ([#9172](https://github.com/dynamic-labs/dynamic-auth/issues/9172)) ([61de8ca](https://github.com/dynamic-labs/dynamic-auth/commit/61de8caccb95c5d52126283ac7a1ebd5a36aa33c))
|
|
15
|
+
* show hcaptcha for headless social sign in ([#9154](https://github.com/dynamic-labs/dynamic-auth/issues/9154)) ([262b752](https://github.com/dynamic-labs/dynamic-auth/commit/262b75257ec6dcc05f67804b71f7285ec5919f91))
|
|
16
|
+
|
|
2
17
|
## [4.24.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.23.1...v4.24.0) (2025-07-15)
|
|
3
18
|
|
|
4
19
|
### Features
|
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.
|
|
3
|
+
"version": "4.25.0",
|
|
4
4
|
"description": "Core package for utilizing Dynamic's sdk",
|
|
5
5
|
"author": "Dynamic Labs, Inc.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -19,11 +19,11 @@
|
|
|
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.
|
|
24
|
-
"@dynamic-labs/logger": "4.
|
|
25
|
-
"@dynamic-labs/message-transport": "4.
|
|
26
|
-
"@dynamic-labs/types": "4.
|
|
22
|
+
"@dynamic-labs/sdk-api-core": "0.0.718",
|
|
23
|
+
"@dynamic-labs/assert-package-version": "4.25.0",
|
|
24
|
+
"@dynamic-labs/logger": "4.25.0",
|
|
25
|
+
"@dynamic-labs/message-transport": "4.25.0",
|
|
26
|
+
"@dynamic-labs/types": "4.25.0",
|
|
27
27
|
"eventemitter3": "5.0.1"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {}
|
|
@@ -7,6 +7,7 @@ var messageTransport = require('@dynamic-labs/message-transport');
|
|
|
7
7
|
var pickListenerActions = require('../../utils/pickListenerActions/pickListenerActions.cjs');
|
|
8
8
|
var emailAuthModule = require('./emailAuthModule/emailAuthModule.cjs');
|
|
9
9
|
var externalAuthModule = require('./externalAuthModule/externalAuthModule.cjs');
|
|
10
|
+
var passkeyAuthModule = require('./passkeyAuthModule/passkeyAuthModule.cjs');
|
|
10
11
|
var smsAuthModule = require('./smsAuthModule/smsAuthModule.cjs');
|
|
11
12
|
var socialAuthModule = require('./socialAuthModule/socialAuthModule.cjs');
|
|
12
13
|
|
|
@@ -35,6 +36,7 @@ const createAuthModule = (core) => {
|
|
|
35
36
|
email: emailAuthModule.createEmailAuthModule(core),
|
|
36
37
|
external: externalAuthModule.createExternalAuthModule(core),
|
|
37
38
|
logout: () => requestChannel.request('logout'),
|
|
39
|
+
passkey: passkeyAuthModule.createPasskeyAuthModule(core),
|
|
38
40
|
refreshUser: () => requestChannel.request('refreshUser'),
|
|
39
41
|
setHandler: (_, handler) => (handlers.userAuthenticated = handler),
|
|
40
42
|
sms: smsAuthModule.createSmsAuthModule(core),
|
|
@@ -3,10 +3,12 @@ import type { UserProfile } from '@dynamic-labs/types';
|
|
|
3
3
|
import { Core } from '../../client/core';
|
|
4
4
|
import { EmailAuthModule } from './emailAuthModule';
|
|
5
5
|
import { ExternalAuthModule } from './externalAuthModule';
|
|
6
|
+
import { PasskeyAuthModule } from './passkeyAuthModule';
|
|
6
7
|
import { SmsAuthModule } from './smsAuthModule';
|
|
7
8
|
import { SocialAuthModule } from './socialAuthModule';
|
|
8
9
|
type PublicAuthModuleMessages = Pick<AuthModuleMessages, typeof authEventNames[number]>;
|
|
9
10
|
export type AuthModule = AuthModuleState & StoreEventListeners<AuthModuleState> & PickedEventListeners<PublicAuthModuleMessages> & {
|
|
11
|
+
passkey: PasskeyAuthModule;
|
|
10
12
|
sms: SmsAuthModule;
|
|
11
13
|
email: EmailAuthModule;
|
|
12
14
|
social: SocialAuthModule;
|
|
@@ -3,6 +3,7 @@ import { createStore, createEventEmitterForMessages, authEventNames, createReque
|
|
|
3
3
|
import { pickListenerActions } from '../../utils/pickListenerActions/pickListenerActions.js';
|
|
4
4
|
import { createEmailAuthModule } from './emailAuthModule/emailAuthModule.js';
|
|
5
5
|
import { createExternalAuthModule } from './externalAuthModule/externalAuthModule.js';
|
|
6
|
+
import { createPasskeyAuthModule } from './passkeyAuthModule/passkeyAuthModule.js';
|
|
6
7
|
import { createSmsAuthModule } from './smsAuthModule/smsAuthModule.js';
|
|
7
8
|
import { createSocialAuthModule } from './socialAuthModule/socialAuthModule.js';
|
|
8
9
|
|
|
@@ -31,6 +32,7 @@ const createAuthModule = (core) => {
|
|
|
31
32
|
email: createEmailAuthModule(core),
|
|
32
33
|
external: createExternalAuthModule(core),
|
|
33
34
|
logout: () => requestChannel.request('logout'),
|
|
35
|
+
passkey: createPasskeyAuthModule(core),
|
|
34
36
|
refreshUser: () => requestChannel.request('refreshUser'),
|
|
35
37
|
setHandler: (_, handler) => (handlers.userAuthenticated = handler),
|
|
36
38
|
sms: createSmsAuthModule(core),
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { createPasskeyAuthModule, type PasskeyAuthModule, } from './passkeyAuthModule';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
'use client'
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
|
+
|
|
6
|
+
var messageTransport = require('@dynamic-labs/message-transport');
|
|
7
|
+
|
|
8
|
+
const createPasskeyAuthModule = (core) => {
|
|
9
|
+
const passkeyRequestChannel = messageTransport.createRequestChannel(core.messageTransport);
|
|
10
|
+
return {
|
|
11
|
+
signIn: () => passkeyRequestChannel.request('signInWithPasskey'),
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
exports.createPasskeyAuthModule = createPasskeyAuthModule;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { PasskeyMessages } from '@dynamic-labs/message-transport';
|
|
2
|
+
import { Core } from '../../../client/core';
|
|
3
|
+
export type PasskeyAuthModule = {
|
|
4
|
+
signIn: PasskeyMessages['signInWithPasskey'];
|
|
5
|
+
};
|
|
6
|
+
export declare const createPasskeyAuthModule: (core: Core) => {
|
|
7
|
+
signIn: () => Promise<import("@dynamic-labs/sdk-api-core").VerifyResponse>;
|
|
8
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
'use client'
|
|
2
|
+
import { createRequestChannel } from '@dynamic-labs/message-transport';
|
|
3
|
+
|
|
4
|
+
const createPasskeyAuthModule = (core) => {
|
|
5
|
+
const passkeyRequestChannel = createRequestChannel(core.messageTransport);
|
|
6
|
+
return {
|
|
7
|
+
signIn: () => passkeyRequestChannel.request('signInWithPasskey'),
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export { createPasskeyAuthModule };
|