@ideem/zsm-client-sdk 2.8.1 → 2.9.1
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 +12 -1
- package/ErrorHandler.js +1 -154
- package/EventCoordinator.js +1 -295
- package/FIDO2Client.js +1 -15
- package/FIDO2ClientBase.js +3 -337
- package/GlobalScoping.js +1 -8
- package/IdentityIndexing.js +1 -51
- package/PKPUtils.js +1 -61
- package/PasskeysPlusClient.js +1 -125
- package/PluginManager.js +1 -112
- package/RelyingParty.js +1 -15
- package/RelyingPartyBase.js +3 -371
- package/UMFAClient.js +1 -15
- package/UMFAClientBase.js +1 -356
- package/Utils.js +1 -44
- package/WASMRustInterface.js +29 -22
- package/WebAuthnClient.js +1 -29
- package/WebAuthnClientBase.js +1 -763
- package/ZSMClientSDK.js +1 -43
- package/encodeUserIdentifier.js +1 -17
- package/package.json +1 -1
package/WebAuthnClient.js
CHANGED
|
@@ -1,29 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
import WebAuthnClientBase from './WebAuthnClientBase.js';
|
|
3
|
-
import WASMRustInterface from './WASMRustInterface.js';
|
|
4
|
-
|
|
5
|
-
eventCoordinator.update('WebAuthnClient');
|
|
6
|
-
|
|
7
|
-
class WebAuthnClient extends WebAuthnClientBase {
|
|
8
|
-
/**
|
|
9
|
-
* Constructs a WebAuthnClient object by extending the WebAuthnClientBase class.
|
|
10
|
-
* @param {Object} config - The configuration for ZSM initialization.
|
|
11
|
-
*/
|
|
12
|
-
constructor(config) {
|
|
13
|
-
super(config);
|
|
14
|
-
eventCoordinator.update('WebAuthnClient', 'READY');
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* @name getZsmApi
|
|
19
|
-
* @description Retrieves the ZSM API instance.
|
|
20
|
-
* @param {Object} config The configuration object for ZSM initialization.
|
|
21
|
-
* @returns {Promise<ZSMAPI>} Resolves with the initialized ZSM API.
|
|
22
|
-
* @overrides {function} getZsmApi (ref: WebAuthnClientBase)
|
|
23
|
-
* @memberOf WebAuthnClient
|
|
24
|
-
*/
|
|
25
|
-
getZsmApi = async (config) => WASMRustInterface(config);
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
// Export the WebAuthnClient class
|
|
29
|
-
export default WebAuthnClient;
|
|
1
|
+
import t from"./EventCoordinator.js";import e from"./WebAuthnClientBase.js";import r from"./WASMRustInterface.js";t.update("WebAuthnClient");export default class extends e{constructor(e){super(e),t.update("WebAuthnClient","READY")}getZsmApi=async t=>r(t)}
|