Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/jose/jws/compact/verify.ts>compactVerify

"JSON Web Almost Everything" - JWA, JWS, JWE, JWT, JWK, JWKS for Node.js, Browser, Cloudflare Workers, Deno, Bun, and other Web-interoperable runtimes.
Extremely Popular
Go to Latest
function compactVerify
import { compactVerify } from "https://deno.land/x/jose@v4.14.4/jws/compact/verify.ts";

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

Parameters

jws: string | Uint8Array

Compact JWS.

key: KeyLike | Uint8Array

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

optional
options: VerifyOptions

JWS Verify options.

Type Parameters

optional
T 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.