Read JsonWebKey from webcrypto, where @types/node 26 exports it

This commit is contained in:
2026-11-08 23:13:58 +01:00
parent 3f07c3e649
commit 1304cdae56
7 changed files with 16 additions and 9 deletions
+2 -1
View File
@@ -1,5 +1,6 @@
import { createPublicKey, verify } from "node:crypto";
import type { JsonWebKey, KeyObject } from "node:crypto";
import type { KeyObject } from "node:crypto";
import type { JsonWebKey } from "./jwks.ts";
// JWS signature verification with the Node stdlib — no `jose`/JWT dep:
// `createPublicKey({format:"jwk"})` imports a JWK and verifies the RS*/ES* signatures