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

Function looksLikeJwt

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

Source from the content-addressed store, hash-verified

114// token from the CLI device-login); anything else is treated as an API key.
115// Same discriminator the MCP plane uses (`mcp/auth.ts`).
116const looksLikeJwt = (token: string): boolean => token.split(".").length === 3;
117
118/**
119 * 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