@vizualkei/neuma-client-sdk 0.100.3 → 0.108.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/dist/NeumaClientHelper.js +1 -1
- package/dist/NeumaMobile.js +4 -4
- package/package.json +1 -1
|
@@ -172,7 +172,7 @@ class NeumaClientHelper {
|
|
|
172
172
|
extractNrt(payload) {
|
|
173
173
|
if (!payload || typeof payload !== 'object')
|
|
174
174
|
return undefined;
|
|
175
|
-
const nrt = payload.
|
|
175
|
+
const nrt = payload.nrt;
|
|
176
176
|
return typeof nrt === 'string' && nrt.length > 0 ? nrt : undefined;
|
|
177
177
|
}
|
|
178
178
|
decodeJwtPayload(token) {
|
package/dist/NeumaMobile.js
CHANGED
|
@@ -590,7 +590,7 @@ class NeumaMobile {
|
|
|
590
590
|
common_utils_1.logger.error('Operation failed', { operation, error: message });
|
|
591
591
|
throw new NeumaMobileInterface_1.NeumaError(message, errorCode);
|
|
592
592
|
}
|
|
593
|
-
const nrt = payload?.
|
|
593
|
+
const nrt = payload?.nrt;
|
|
594
594
|
if (typeof nrt !== 'string' || nrt.length === 0) {
|
|
595
595
|
common_utils_1.logger.error('Biometric result token missing', {
|
|
596
596
|
operation,
|
|
@@ -646,7 +646,7 @@ class NeumaMobile {
|
|
|
646
646
|
});
|
|
647
647
|
if (response.ok) {
|
|
648
648
|
const payload = await response.json();
|
|
649
|
-
if (payload && typeof payload.
|
|
649
|
+
if (payload && typeof payload.nrt === 'string' && payload.nrt.length > 0) {
|
|
650
650
|
common_utils_1.logger.info('Received Neuma result token via long polling', {
|
|
651
651
|
callbackId,
|
|
652
652
|
payloadKeys: Object.keys(payload || {}),
|
|
@@ -774,7 +774,7 @@ class NeumaMobile {
|
|
|
774
774
|
}
|
|
775
775
|
}
|
|
776
776
|
if (this.options.neumaSessionToken) {
|
|
777
|
-
params.append('
|
|
777
|
+
params.append('nst', this.options.neumaSessionToken);
|
|
778
778
|
}
|
|
779
779
|
// Use HTTPS App Link for QR codes - Android camera apps don't support custom schemes
|
|
780
780
|
const appLinkBase = this.resolveQrAppLinkBase();
|
|
@@ -887,7 +887,7 @@ class NeumaMobile {
|
|
|
887
887
|
}
|
|
888
888
|
}
|
|
889
889
|
if (this.options.neumaSessionToken) {
|
|
890
|
-
params.append('
|
|
890
|
+
params.append('nst', this.options.neumaSessionToken);
|
|
891
891
|
}
|
|
892
892
|
if (returnUrl) {
|
|
893
893
|
params.append('returnUrl', returnUrl);
|
package/package.json
CHANGED