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