import { calculateJwkThumbprint } from "https://deno.land/x/jose@v4.11.2/jwk/thumbprint.ts";
Calculates a base64url-encoded JSON Web Key (JWK) Thumbprint
Examples
Usage
Usage
const thumbprint = await jose.calculateJwkThumbprint({
kty: 'EC',
crv: 'P-256',
x: 'jJ6Flys3zK9jUhnOHf6G49Dyp5hah6CNP84-gY-n9eo',
y: 'nhI6iD5eFXgBTLt_1p3aip-5VbZeMhxeFSpjfEAf7Ww',
})
console.log(thumbprint)
// 'w9eYdC6_s_tLQ8lH6PUpc0mddazaqtPgeC2IgWDiqY8'
Parameters
jwk: JWK
JSON Web Key.