open-index/open-npm huggingface dataset:
npm package: @okta/vdc-sdk-node
Description: A Node.js SDK for Okta's Verifiable Digital Credentials (VDC) verification service.
Latest version: 1.0.5

# Okta VDC SDK for Node.js

Server-side SDK for verifying digital credentials with the Okta Verified Digital Credentials platform.

## Installation

```bash
npm install @okta/vdc-sdk-node
```

## Quick Start

```typescript
import {
  OktaVdcSdk,
  CredentialRequestResponseMode,
  CredentialProtocol,
  CredentialFormat,
  CredentialType,
} from "@okta/vdc-sdk-node";

// 1. Initialize the SDK
const sdk = new OktaVdcSdk({
  clientId: process.env.OKTA_VDC_CLIENT_ID,
  clientSecret: process.env.OKTA_VDC_CLIENT_SECRET,
});

// 2. Create and initiate a credential request
const request = sdk.createCredentialRequest({
  responseMode: CredentialRequestResponseMode.DIRECT_POST,
  protocol: CredentialProtocol.OPENID4VP_SIGNED,
  dcqlQuery: {
    credentials: [
      {
        id: "age_verification",
        format: CredentialFormat.MDOC,
        meta: { doctype_value: CredentialType.MDL },
        claims: [
          { path: ["org.iso.18013.5.1", "age_over_21"], intent_to_retain: false },
        ],
      },
    ],
  },
});

const presentation = await request.initiate();

// 3. Verify response and retrieve claims
const request = await sdk.getCredentialRequestFromSessionId(sessionId);
const { status, claims } = await request.verifyResponseAndGetClaims();
```

## License

Apache 2.0 - See [LICENSE](./LICENSE) for details.
npm package: @okta/vdc-sdk-types
Description: TypeScript typings for Okta VDC SDK.
Latest version: 1.0.5

# Okta VDC SDK Types

Shared TypeScript type definitions for the Okta VDC SDK packages. This package is provided as a convenience for accessing types corresponding to the Okta VDC Platform in a browser environment.

## Installation

```bash
npm install @okta/vdc-sdk-types
```

## Usage

This package is automatically included as a dependency of `@okta/vdc-sdk-node`. You typically don't need to install it directly.

```typescript
import {
  CredentialRequestResponseMode,
  CredentialProtocol,
  CredentialFormat,
  CredentialType,
  CredentialRequestStatus,
} from "@okta/vdc-sdk-types";
```

## License

Apache 2.0 - See [LICENSE](./LICENSE) for details.