UNPKG

@gaonengwww/jose

Version:

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

17 lines (14 loc) 388 B
import { JWK } from '../types.d.cjs'; declare function isJWK(key: unknown): key is JWK & { kty: string; }; declare function isPrivateJWK(key: JWK & { kty: string; }): boolean; declare function isPublicJWK(key: JWK & { kty: string; }): boolean; declare function isSecretJWK(key: JWK & { kty: string; }): boolean; export { isJWK, isPrivateJWK, isPublicJWK, isSecretJWK };