
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
@validatedid/vc-vp-validator
Advanced tools
vc-vp-validator is a library designed to provide validation functionality for JSON Web Tokens (JWTs) and JSON objects representing verifiable credentials and presentations. It exposes four validation functions tailored to validate both JSON and JWT credentials and presentations. This library supports various DID methods including did:key, did:ebsi, and did:web.
[!NOTE]
For@validatedidinternal use.
did:key, did:ebsi, and did:web.validateDidAuthTokenYou can install vc-vp-validator via npm:
npm install vc-vp-validator
import {
validateJwtVC,
validateJsonVC,
validateDcqlVp,
validateDidAuthToken,
} from 'vc-vp-validator';
const validationResult = await validateJwtVC(jwtCredential, options);
const validationResult = await validateJsonVC(jsonCredential, options);
const validationResult = await validateDcqlVp(dcqlPresentation, audience, options);
To validate a DID-based authentication token (e.g., id_token), you can use the validateDidAuthIdToken function. This function checks the validity of the token, ensures it contains the correct issuer (iss) and algorithm (alg), and validates the token's signature.
const validationResult = await validateDidAuthToken(id_token);
Both credential validation functions (validateJwtVC and validateJsonVC) and presentation validation functions (validateDcqlVP) support optional options parameters.
export interface CredentialValidationOptions {
didRegistry?: string;
ebsiAuthority?: string;
}
export interface PresentationValidationOptions {
dcqlQuery?: DCQLQuery;
didRegistry?: string;
ebsiAuthority?: string;
}
The response object will follow the interface:
export interface ValidationResult {
valid: boolean;
messages?: string[];
}
If the valid property is false, the messages array will include reasons why the credential is not valid.
FAQs
Verifiable Credentials validator library
We found that @validatedid/vc-vp-validator demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 6 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.