@raisindb/client 0.4.3 → 0.4.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/dist/index.mjs CHANGED
@@ -6459,7 +6459,7 @@ var RaisinHttpClient = class extends EventEmitter {
6459
6459
  "Content-Type": "application/json",
6460
6460
  ...options.headers
6461
6461
  };
6462
- if (!options.skipAuth && this.authManager.isAuthenticated()) {
6462
+ if (!options.skipAuth) {
6463
6463
  const token = this.authManager.getAccessToken();
6464
6464
  if (token) {
6465
6465
  headers["Authorization"] = `Bearer ${token}`;
@@ -6603,11 +6603,9 @@ var RaisinHttpClient = class extends EventEmitter {
6603
6603
  */
6604
6604
  mcpSubscribe(repository, branch, slug, method, params) {
6605
6605
  const headers = {};
6606
- if (this.authManager.isAuthenticated()) {
6607
- const token = this.authManager.getAccessToken();
6608
- if (token) {
6609
- headers["Authorization"] = `Bearer ${token}`;
6610
- }
6606
+ const token = this.authManager.getAccessToken();
6607
+ if (token) {
6608
+ headers["Authorization"] = `Bearer ${token}`;
6611
6609
  }
6612
6610
  const sse = new SSEClient(
6613
6611
  `${this.baseUrl}/mcp/${repository}/${branch}/${slug}`,