Module

x/jose/index.ts>compactVerify

JWA, JWS, JWE, JWT, JWK, JWKS for Node.js, Browser, Cloudflare Workers, Deno, Bun, and other Web-interoperable runtimes.
Extremely Popular
Latest
function compactVerify
import { compactVerify } from "https://dotland.deno.dev/x/jose@v5.9.6/index.ts";

Verifies the signature and format of and afterwards decodes the Compact JWS.

This function is exported (as a named export) from the main 'jose' module entry point as well as from its subpath export 'jose/jws/compact/verify'.

Parameters

jws: string | Uint8Array

Compact JWS.

key: KeyLike | Uint8Array | JWK

Key to verify the JWS with. See Algorithm Key Requirements.

optional
options: VerifyOptions

JWS Verify options.

Type Parameters

optional
KeyLikeType extends KeyLike = KeyLike

Parameters

jws: string | Uint8Array

Compact JWS.

Function resolving a key to verify the JWS with. See Algorithm Key Requirements.

optional
options: VerifyOptions

JWS Verify options.