MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / looksLikeJwt

Function looksLikeJwt

apps/cloud/src/auth/workos-auth-provider.ts:118–118  ·  view source on GitHub ↗
(token: string)

Source from the content-addressed store, hash-verified

116// token from the CLI device-login); anything else is treated as an API key.
117// Same discriminator the MCP plane uses (`mcp/auth.ts`).
118const looksLikeJwt = (token: string): boolean => token.split(".").length === 3;
119
120/**
121 * Resolve a WorkOS device-login (user_management) access token into a protected

Callers 1

resolveBearerAuthFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected