
Company News
Socket Joins the OpenJS Foundation
Socket is proud to join the OpenJS Foundation as a Silver Member, deepening our commitment to the long-term health and security of the JavaScript ecosystem.
@solid/identity-token-verifier
Advanced tools
Verifies Solid access tokens via their WebID claim, and thus asserts ownership of WebIDs.
This library verifies Solid access tokens via their WebID claim, and thus asserts ownership of WebIDs.
It conforms to the Solid Identity specification.
See also: Solid OIDC Primer Request Flow
Verify Solid Access Tokens with a simple function:
import type { RequestMethod, SolidTokenVerifierFunction } from '@solid/identity-token-verifier';
import { createSolidTokenVerifier } from '@solid/identity-token-verifier';
const solidTokenVerifier: SolidTokenVerifierFunction = createSolidTokenVerifier();
try {
const { client_id: clientId, webid: webId } = await solidTokenVerifier(
authorizationHeader as string,
{
header: dpopHeader as string,
method: requestMethod as RequestMethod,
url: requestURL as string
}
);
console.log(`Verified Access Token via WebID: ${webId} and for client: ${clientId}`);
return { webId, clientId };
} catch (error: unknown) {
const message = `Error verifying Access Token via WebID: ${(error as Error).message}`;
console.log(message);
throw new Error(message);
}
The solidTokenVerifier function takes an authorization header which can be an encoded Bearer or
DPoP bound access token and optional DPoP parameters.
FAQs
Verifies Solid access tokens via their WebID claim, and thus asserts ownership of WebIDs.
The npm package @solid/identity-token-verifier receives a total of 201 weekly downloads. As such, @solid/identity-token-verifier popularity was classified as not popular.
We found that @solid/identity-token-verifier demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 15 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.

Company News
Socket is proud to join the OpenJS Foundation as a Silver Member, deepening our commitment to the long-term health and security of the JavaScript ecosystem.

Security News
npm now links to Socket's security analysis on every package page. Here's what you'll find when you click through.

Security News
A compromised npm publish token was used to push a malicious postinstall script in cline@2.3.0, affecting the popular AI coding agent CLI with 90k weekly downloads.