Skip to main content
Glama
is_jwk.js453 B
import { isObject } from './is_object.js'; export const isJWK = (key) => isObject(key) && typeof key.kty === 'string'; export const isPrivateJWK = (key) => key.kty !== 'oct' && ((key.kty === 'AKP' && typeof key.priv === 'string') || typeof key.d === 'string'); export const isPublicJWK = (key) => key.kty !== 'oct' && key.d === undefined && key.priv === undefined; export const isSecretJWK = (key) => key.kty === 'oct' && typeof key.k === 'string';

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Valerio357/bet-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server