diff --git a/nodejs-example/package.json b/nodejs-example/package.json index ce279d3..17a7c45 100644 --- a/nodejs-example/package.json +++ b/nodejs-example/package.json @@ -13,6 +13,7 @@ "typeorm": "^0.3.20" }, "scripts": { + "generate-oid4vc-offer": "node generate-oid4vc-offer.js", "verification-example": "npx babel-node verification-example.js", "oid4vc-example": "npx babel-node oid4vc-example.js" }, @@ -20,5 +21,6 @@ "@babel/core": "^7.22.9", "@babel/node": "^7.22.6", "@babel/preset-env": "7.26.0" - } + }, + "packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e" } diff --git a/nodejs-example/readme.md b/nodejs-example/readme.md index 1c7fb0e..e93c7cc 100644 --- a/nodejs-example/readme.md +++ b/nodejs-example/readme.md @@ -1,4 +1,4 @@ -# Wallet sdk web examples +# Wallet SDK Node.js examples This is an examples on how to install the Dock Wallet SDK in a nodejs application. ## Installation steps @@ -28,7 +28,7 @@ Note: Next, generate the OpenID issuer and the credential offer by running the following command: ```bash -node generate-oid4vc-offer.js +yarn generate-oid4vc-offer ``` The output should look like this: @@ -54,7 +54,7 @@ In a real-world scenario, this credential offer URL would typically be rendered Now you can run the Wallet SDK example to import the credential into the wallet: ```bash -yarn oid4vc-example +yarn oid4vc-example ``` The example above creates an instance of the Wallet SDK, imports the credential into the wallet, and then logs the list of credentials available in the user database. Note that the imported credential is stored locally on the device, and in this Node.js example, it uses SQLite for storage. @@ -64,7 +64,7 @@ The example above creates an instance of the Wallet SDK, imports the credential In this example, we will show how to use the SDK to verify a credential. ``` bash -yarn oid4vc-example +yarn verification-example ```