UNPKG

@digital-passports/javascript-sdk

Version:

JavaScript SDK for interacting with the Digital Passport Hub REST API.

16 lines (13 loc) 437 B
# Next.js Example This example demonstrates how to use the Digital Passport Hub JavaScript SDK in a Next.js application. ## Usage 1. Copy `pages/index.js` into your Next.js project (e.g., `pages/index.js`). 2. Install the SDK: ``` npm install @digital-passports/javascript-sdk ``` 3. Start your Next.js app: ``` npm run dev ``` 4. Enter your API key, then use the buttons to list or create passports.