Skip to content

Commit ccf235d

Browse files
changing JSON string to object
1 parent 0cafe70 commit ccf235d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/authentication/util/MLEUtility.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ exports.checkAndDecryptEncryptedResponse = function (responseBody, merchantConfi
9090
return JWEUtility.decryptJWEUsingPrivateKey(privateKey, responseBody.encryptedResponse)
9191
.then(decryptedData => {
9292
logger.debug('LOG_NETWORK_RESPONSE_AFTER_MLE_DECRYPTION: ' + JSON.stringify(decryptedData));
93-
return decryptedData;
93+
return JSON.parse(decryptedData);
9494
})
9595
.catch(error => {
9696
const errorMsg = `Error decrypting MLE response: ${error.message}`;

0 commit comments

Comments
 (0)