Skip to main content
Glama
isJWT.js376 B
import assertString from './util/assertString'; import isBase64 from './isBase64'; export default function isJWT(str) { assertString(str); var dotSplit = str.split('.'); var len = dotSplit.length; if (len !== 3) { return false; } return dotSplit.reduce(function (acc, currElem) { return acc && isBase64(currElem, { urlSafe: true }); }, true); }

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/indrasishbanerjee/aem-mcp-server'

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