@dynamic-labs/client 3.0.0-alpha.20 → 3.0.0-alpha.22
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 +21 -0
- package/package.cjs +1 -1
- package/package.js +1 -1
- package/package.json +4 -4
- 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/externalAuthMethod/externalAuthMethod.cjs +15 -0
- package/src/modules/authModule/externalAuthMethod/externalAuthMethod.d.ts +4 -0
- package/src/modules/authModule/externalAuthMethod/externalAuthMethod.js +11 -0
- package/src/modules/authModule/externalAuthMethod/index.d.ts +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,25 @@
|
|
|
1
1
|
|
|
2
|
+
## [3.0.0-alpha.22](https://github.com/dynamic-labs/DynamicAuth/compare/v3.0.0-alpha.21...v3.0.0-alpha.22) (2024-07-18)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
* add support for aa kernel 3.1 ([#6333](https://github.com/dynamic-labs/DynamicAuth/issues/6333)) ([93c743a](https://github.com/dynamic-labs/DynamicAuth/commit/93c743a74d1af79f15baec343d15212a2feeac39))
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Bug Fixes
|
|
11
|
+
|
|
12
|
+
* ensure retryableFn props are passed through ([#6357](https://github.com/dynamic-labs/DynamicAuth/issues/6357)) ([246da78](https://github.com/dynamic-labs/DynamicAuth/commit/246da78ebaa0e623843d93fc990d8a0f3298af54))
|
|
13
|
+
* removes wallet connect qr code from magic eden ([#6360](https://github.com/dynamic-labs/DynamicAuth/issues/6360)) ([5968c2e](https://github.com/dynamic-labs/DynamicAuth/commit/5968c2e220f98b0995a2067e6f5397f27da4dfb0))
|
|
14
|
+
|
|
15
|
+
## [3.0.0-alpha.21](https://github.com/dynamic-labs/DynamicAuth/compare/v3.0.0-alpha.20...v3.0.0-alpha.21) (2024-07-17)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Bug Fixes
|
|
19
|
+
|
|
20
|
+
* invalid email error appears ([#6348](https://github.com/dynamic-labs/DynamicAuth/issues/6348)) ([01bcfd2](https://github.com/dynamic-labs/DynamicAuth/commit/01bcfd2f3cc37083c47c0f26e3398f974f6b6a17))
|
|
21
|
+
* stop unnecessary phantom btc popup when disconnecting ([#6188](https://github.com/dynamic-labs/DynamicAuth/issues/6188)) ([15c2eb5](https://github.com/dynamic-labs/DynamicAuth/commit/15c2eb5da90be93ab917e7c61a873a0e9a568211))
|
|
22
|
+
|
|
2
23
|
## [3.0.0-alpha.20](https://github.com/dynamic-labs/DynamicAuth/compare/v3.0.0-alpha.19...v3.0.0-alpha.20) (2024-07-15)
|
|
3
24
|
|
|
4
25
|
|
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": "3.0.0-alpha.
|
|
3
|
+
"version": "3.0.0-alpha.22",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/dynamic-labs/dynamic-auth.git",
|
|
@@ -26,12 +26,12 @@
|
|
|
26
26
|
"./package.json": "./package.json"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@dynamic-labs/message-transport": "3.0.0-alpha.
|
|
29
|
+
"@dynamic-labs/message-transport": "3.0.0-alpha.22",
|
|
30
30
|
"@vue/reactivity": "3.4.21"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
|
-
"@dynamic-labs/logger": "3.0.0-alpha.
|
|
34
|
-
"@dynamic-labs/types": "3.0.0-alpha.
|
|
33
|
+
"@dynamic-labs/logger": "3.0.0-alpha.22",
|
|
34
|
+
"@dynamic-labs/types": "3.0.0-alpha.22",
|
|
35
35
|
"eventemitter3": "5.0.1"
|
|
36
36
|
}
|
|
37
37
|
}
|
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
6
6
|
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
|
+
var externalAuthMethod = require('./externalAuthMethod/externalAuthMethod.cjs');
|
|
9
10
|
var smsAuthModule = require('./smsAuthModule/smsAuthModule.cjs');
|
|
10
11
|
var socialAuthModule = require('./socialAuthModule/socialAuthModule.cjs');
|
|
11
12
|
|
|
@@ -27,6 +28,7 @@ const createAuthModule = (core) => {
|
|
|
27
28
|
return Object.assign(store.getters, pickListenerActions.pickListenerActions(messageEvents), {
|
|
28
29
|
email: emailAuthModule.createEmailAuthModule(core),
|
|
29
30
|
logout: () => requestChannel.request('logout'),
|
|
31
|
+
signInWithExternalJwt: externalAuthMethod.createExternalAuthMethod(core),
|
|
30
32
|
sms: smsAuthModule.createSmsAuthModule(core),
|
|
31
33
|
social: socialAuthModule.createSocialAuthModule(core),
|
|
32
34
|
});
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { AuthModuleMessages, AuthModuleState, StoreEventListeners } from '@dynamic-labs/message-transport';
|
|
2
2
|
import { Core } from '../../client/core';
|
|
3
3
|
import { EmailAuthModule } from './emailAuthModule';
|
|
4
|
+
import { ExternalAuthMethod } from './externalAuthMethod';
|
|
4
5
|
import { SmsAuthModule } from './smsAuthModule';
|
|
5
6
|
import { SocialAuthModule } from './socialAuthModule';
|
|
6
7
|
type PublicAuthModuleMessages = Pick<AuthModuleMessages, 'logout'>;
|
|
@@ -8,6 +9,7 @@ export type AuthModule = AuthModuleState & StoreEventListeners<AuthModuleState>
|
|
|
8
9
|
sms: SmsAuthModule;
|
|
9
10
|
email: EmailAuthModule;
|
|
10
11
|
social: SocialAuthModule;
|
|
12
|
+
signInWithExternalJwt: ExternalAuthMethod;
|
|
11
13
|
};
|
|
12
14
|
export declare const createAuthModule: (core: Core) => AuthModule;
|
|
13
15
|
export {};
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import { createStore, createEventEmitterForMessages, createRequestChannel } from '@dynamic-labs/message-transport';
|
|
3
3
|
import { pickListenerActions } from '../../utils/pickListenerActions/pickListenerActions.js';
|
|
4
4
|
import { createEmailAuthModule } from './emailAuthModule/emailAuthModule.js';
|
|
5
|
+
import { createExternalAuthMethod } from './externalAuthMethod/externalAuthMethod.js';
|
|
5
6
|
import { createSmsAuthModule } from './smsAuthModule/smsAuthModule.js';
|
|
6
7
|
import { createSocialAuthModule } from './socialAuthModule/socialAuthModule.js';
|
|
7
8
|
|
|
@@ -23,6 +24,7 @@ const createAuthModule = (core) => {
|
|
|
23
24
|
return Object.assign(store.getters, pickListenerActions(messageEvents), {
|
|
24
25
|
email: createEmailAuthModule(core),
|
|
25
26
|
logout: () => requestChannel.request('logout'),
|
|
27
|
+
signInWithExternalJwt: createExternalAuthMethod(core),
|
|
26
28
|
sms: createSmsAuthModule(core),
|
|
27
29
|
social: createSocialAuthModule(core),
|
|
28
30
|
});
|
|
@@ -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
|
+
// Since we only have a single method for this right now this file is for the method
|
|
9
|
+
// But if we ever add more external auth methods, this should become "createExternalAuthModule"
|
|
10
|
+
const createExternalAuthMethod = (core) => {
|
|
11
|
+
const requestChannel = messageTransport.createRequestChannel(core.messageTransport);
|
|
12
|
+
return (props) => requestChannel.request('signInWithExternalJwt', props);
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
exports.createExternalAuthMethod = createExternalAuthMethod;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ExternalAuthMessages } from '@dynamic-labs/message-transport';
|
|
2
|
+
import { Core } from '../../../client/core';
|
|
3
|
+
export type ExternalAuthMethod = ExternalAuthMessages['signInWithExternalJwt'];
|
|
4
|
+
export declare const createExternalAuthMethod: (core: Core) => ExternalAuthMethod;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
'use client'
|
|
2
|
+
import { createRequestChannel } from '@dynamic-labs/message-transport';
|
|
3
|
+
|
|
4
|
+
// Since we only have a single method for this right now this file is for the method
|
|
5
|
+
// But if we ever add more external auth methods, this should become "createExternalAuthModule"
|
|
6
|
+
const createExternalAuthMethod = (core) => {
|
|
7
|
+
const requestChannel = createRequestChannel(core.messageTransport);
|
|
8
|
+
return (props) => requestChannel.request('signInWithExternalJwt', props);
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export { createExternalAuthMethod };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './externalAuthMethod';
|