Skip to content

Fixes to the nodejs example #13

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion nodejs-example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,14 @@
"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"
},
"devDependencies": {
"@babel/core": "^7.22.9",
"@babel/node": "^7.22.6",
"@babel/preset-env": "7.26.0"
}
},
"packageManager": "[email protected]+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
}
8 changes: 4 additions & 4 deletions nodejs-example/readme.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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:
Expand All @@ -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 <OID4VC_URL>
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.
Expand All @@ -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

```