UNPKG

@gaonengwww/jose

Version:

JWA, JWS, JWE, JWT, JWK, JWKS for Node.js, Browser, Cloudflare Workers, Deno, Bun, and other Web-interoperable runtimes

7 lines (4 loc) 410 B
import { JWK, CryptoKey, KeyObject } from '../types.d.js'; declare function calculateJwkThumbprint(key: JWK | CryptoKey | KeyObject, digestAlgorithm?: 'sha256' | 'sha384' | 'sha512'): Promise<string>; declare function calculateJwkThumbprintUri(key: CryptoKey | KeyObject | JWK, digestAlgorithm?: 'sha256' | 'sha384' | 'sha512'): Promise<string>; export { calculateJwkThumbprint, calculateJwkThumbprintUri };