Skip to content

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
lmuntaner committed Sep 3, 2024
1 parent dcb9681 commit 5b0893a
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions js-library/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,18 @@ The bundle needs peer dependencies, be sure that following resources are availab
npm install @dfinity/principal
```

Import per modules:
Import per modules to have small app size:

```javascript
// import * from '@dfinity/verifiable-credentials'; // Error: use sub-imports, to ensure small app size
import { requestVerifiablePresentation } from "@dfinity/verifiable-credentials/request-verifiable-presentation";
```

Or import default:

```javascript
import { requestVerifiablePresentation } from "@dfinity/verifiable-credentials";
```

## Relying Party: Request Credentials

Use the function `requestVerifiablePresentation` to request credentials from an issuer.
Expand Down

0 comments on commit 5b0893a

Please sign in to comment.