@unumid/server-sdk
Advanced tools
Comparing version 2.1.2 to 2.1.3
@@ -130,3 +130,3 @@ "use strict"; | ||
receiptOptions = { | ||
type: noPresentation.type, | ||
type: ['NoPresentation'], | ||
verifier: verifier, | ||
@@ -133,0 +133,0 @@ subject: noPresentation.proof.verificationMethod, |
@@ -174,2 +174,5 @@ "use strict"; | ||
presentation = library_crypto_1.decrypt(encryptionPrivateKey, encryptedPresentation); | ||
if (process.env.NODE_ENV === 'debug') { | ||
logger_1.default.debug("Decrypted Presentation: " + JSON.stringify(presentation)); | ||
} | ||
// validate presentation | ||
@@ -176,0 +179,0 @@ validatePresentation(presentation); |
{ | ||
"name": "@unumid/server-sdk", | ||
"version": "2.1.2", | ||
"version": "2.1.3", | ||
"main": "build/index.js", | ||
@@ -5,0 +5,0 @@ "repository": "git@github.com:UnumID/Server-SDK-TypeScript.git", |
@@ -21,2 +21,5 @@ **Note**: This branch was a modification that was necessary as part of version 2 of the sdk. It was made after version 3 had already been merged into main. Thus it will live as this special branch for perpetuity or until the use of the sdk version 2 is no more. | ||
## Debugging | ||
The `NODE_ENV` environment variable defaults to `sandbox`. However while debugging one can use the `debug` environment setting. This enables logging of decrypted presentations at the `debug` level. Due to presentations containing sensitive information it is not advised to use in a production environment. | ||
## Documentation | ||
@@ -23,0 +26,0 @@ High level technical documentation can be found [here](https://https://docs.unum.id/server-sdk) which is served via [Docusaurus](https://github.com/UnumID/UnumID.github.io). More detailed generated from source documentation can be found [here](https://docs.unum.id/Server-SDK-Typescript/index.html) which is served via repo specific Github pages via the /docs folder of the main branch. |
@@ -113,3 +113,3 @@ | ||
const receiptOptions = { | ||
type: noPresentation.type, | ||
type: ['NoPresentation'], | ||
verifier, | ||
@@ -116,0 +116,0 @@ subject: noPresentation.proof.verificationMethod, |
@@ -137,2 +137,6 @@ | ||
if (process.env.NODE_ENV === 'debug') { | ||
logger.debug(`Decrypted Presentation: ${JSON.stringify(presentation)}`); | ||
} | ||
// validate presentation | ||
@@ -139,0 +143,0 @@ validatePresentation(presentation); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1103771
12660
356
6