@ideem/zsm-client-sdk 2.7.0 → 2.7.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 +7 -1
- package/FIDO2ClientBase.js +2 -2
- package/RelyingPartyBase.js +1 -0
- package/WASMRustInterface.js +1295 -1293
- package/ZSMClientSDK.js +6 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -12,7 +12,13 @@ and Universal MFA into a browser application.
|
|
|
12
12
|
|
|
13
13
|
----
|
|
14
14
|
|
|
15
|
-
## Release 2.7.
|
|
15
|
+
## Release 2.7.1 - Mar 3, 2026 [ NPM PACKAGE RELEASE ] **[ LATEST ]**
|
|
16
|
+
- Minor bug fixes and improvements
|
|
17
|
+
- Added dynamic versioning headers
|
|
18
|
+
- Updates to WASM code to remove Base64URL encoding and decoding steps for improved performance and reduced complexity
|
|
19
|
+
- Updates to documentation
|
|
20
|
+
|
|
21
|
+
## Release 2.7.0 - January 15, 2026 [ NPM PACKAGE RELEASE ]
|
|
16
22
|
- Minor bug fixes and improvements
|
|
17
23
|
- Standardization of credential responses across all SDK platforms (browser, mobile, native)
|
|
18
24
|
- Standardization of credential schema across all all UMFA workflows
|
package/FIDO2ClientBase.js
CHANGED
|
@@ -85,7 +85,7 @@ class FIDO2ClientBase {
|
|
|
85
85
|
if(userIdentifier == null
|
|
86
86
|
|| userIdentifier === '') throw new Error(`[FIDO2Client] :: webauthnCreate :: A userIdentifier String is required! Received: ${userIdentifier}.`);
|
|
87
87
|
|
|
88
|
-
const createResult = this.zsmAPI.webauthnCreate(userIdentifier);
|
|
88
|
+
const createResult = await this.zsmAPI.webauthnCreate(userIdentifier);
|
|
89
89
|
if(createResult instanceof Error) throw(`[FIDO2Client] :: webauthnCreate :: Unable to associate ${userIdentifier}'s identity with device profile.\nDetails:\n${createResult}`);
|
|
90
90
|
return createResult;
|
|
91
91
|
}catch(e) {
|
|
@@ -108,7 +108,7 @@ class FIDO2ClientBase {
|
|
|
108
108
|
if(userIdentifier == null
|
|
109
109
|
|| userIdentifier === '') throw new Error(`[FIDO2Client] :: webauthnGet :: A userIdentifier String is required! Received: ${userIdentifier}.`);
|
|
110
110
|
let authCredential = await this.zsmAPI.webauthnGet(userIdentifier);
|
|
111
|
-
return authCredential
|
|
111
|
+
return authCredential?.credential??authCredential;
|
|
112
112
|
}catch(e) {
|
|
113
113
|
return new Error(e.message || e || '[FIDO2Client] :: webauthnGet :: An error occurred during credential retrieval.');
|
|
114
114
|
}
|
package/RelyingPartyBase.js
CHANGED
|
@@ -52,6 +52,7 @@ class RelyingPartyBase {
|
|
|
52
52
|
body = Object.assign({ customer_defined_identifier : this.customerDefinedIdentifier, application_id : this.applicationId}, body, this.addlRelyingPartyBodyProps, tracePrimer(true));
|
|
53
53
|
let fetchObj = {
|
|
54
54
|
method,
|
|
55
|
+
// headers : Object.assign(this.xhrHeaders, ((!headers?.Authorization) ? {'Authorization': `Bearer ${this.apiKey}`} : {}), headers, {"X-SDK-Version": JSON.stringify(GLOBAL.ZSMVersions)}),
|
|
55
56
|
headers : Object.assign(this.xhrHeaders, ((!headers?.Authorization) ? {'Authorization': `Bearer ${this.apiKey}`} : {}), headers),
|
|
56
57
|
body : JSON.stringify(body)
|
|
57
58
|
};
|