@kadoa/mcp 0.3.6-rc.2 → 0.3.6-rc.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +4 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -54224,7 +54224,7 @@ class KadoaOAuthProvider {
54224
54224
  const entry = refreshTokens.get(refreshToken);
54225
54225
  if (!entry) {
54226
54226
  console.error(`[AUTH] REFRESH_FAIL: unknown refresh token (token=${refreshToken.slice(0, 12)}..., active_sessions=${refreshTokens.size})`);
54227
- throw new Error("Unknown refresh token");
54227
+ throw new InvalidTokenError("Unknown or expired refresh token");
54228
54228
  }
54229
54229
  refreshTokens.delete(refreshToken);
54230
54230
  let { supabaseJwt, supabaseRefreshToken } = entry;
@@ -54291,14 +54291,14 @@ class KadoaOAuthProvider {
54291
54291
  const entry = accessTokens.get(token);
54292
54292
  if (!entry) {
54293
54293
  console.error(`[AUTH] VERIFY_FAIL: unknown token (token=${token.slice(0, 12)}..., active_sessions=${accessTokens.size})`);
54294
- throw new Error("Unknown access token");
54294
+ throw new InvalidTokenError("Unknown or expired access token");
54295
54295
  }
54296
54296
  if (entry.expiresAt < Date.now()) {
54297
54297
  const expiredAgo = Math.round((Date.now() - entry.expiresAt) / 1000);
54298
54298
  const claims = jwtClaims(entry.supabaseJwt);
54299
54299
  console.error(`[AUTH] VERIFY_FAIL: token expired ${expiredAgo}s ago (email=${claims.email}, team=${entry.teamId}, token=${token.slice(0, 12)}...)`);
54300
54300
  accessTokens.delete(token);
54301
- throw new Error("Access token expired");
54301
+ throw new InvalidTokenError("Access token expired");
54302
54302
  }
54303
54303
  return {
54304
54304
  token,
@@ -54817,6 +54817,7 @@ function escapeHtml(str) {
54817
54817
  }
54818
54818
  var clients, pendingAuths, pendingTeamSelections, authCodes, accessTokens, refreshTokens, TEAM_SELECTION_TTL, ACCESS_TOKEN_TTL, kadoaClientsStore;
54819
54819
  var init_auth2 = __esm(() => {
54820
+ init_errors4();
54820
54821
  clients = new Map;
54821
54822
  pendingAuths = new Map;
54822
54823
  pendingTeamSelections = new Map;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kadoa/mcp",
3
- "version": "0.3.6-rc.2",
3
+ "version": "0.3.6-rc.3",
4
4
  "description": "Kadoa MCP Server — manage workflows from Claude Desktop, Cursor, and other MCP clients",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",