(token: string)
| 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`). |
| 118 | const looksLikeJwt = (token: string): boolean => token.split(".").length === 3; |
| 119 | |
| 120 | /** |
| 121 | * Resolve a WorkOS device-login (user_management) access token into a protected |