@casys/mcp-server 0.17.4 → 0.17.5
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.
- package/package.json +1 -1
- package/src/auth/jwt-provider.ts +5 -1
package/package.json
CHANGED
package/src/auth/jwt-provider.ts
CHANGED
|
@@ -281,7 +281,11 @@ export class JwtAuthProvider extends AuthProvider {
|
|
|
281
281
|
}
|
|
282
282
|
|
|
283
283
|
return authInfo;
|
|
284
|
-
} catch {
|
|
284
|
+
} catch (err) {
|
|
285
|
+
// Log the actual rejection reason so JWKS fetch failures, audience
|
|
286
|
+
// mismatches, and expiration errors are distinguishable in logs.
|
|
287
|
+
const msg = err instanceof Error ? err.message : String(err);
|
|
288
|
+
console.error(`[JwtAuthProvider] Token rejected: ${msg}`);
|
|
285
289
|
return null;
|
|
286
290
|
}
|
|
287
291
|
}
|