@passkeyme/auth 2.0.2 → 2.0.4

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.umd.js CHANGED
@@ -269,10 +269,11 @@
269
269
  this.appId = appId;
270
270
  this.baseUrl = baseUrl.replace(/\/$/, ""); // Remove trailing slash
271
271
  this.debug = debug;
272
+ this.log("API Client initialized with baseUrl:", this.baseUrl);
272
273
  }
273
274
  log(...args) {
274
275
  if (this.debug) {
275
- logger.debug("[PasskeymeAuth]", ...args);
276
+ logger.debug("[PasskeymeApiClient]", ...args);
276
277
  }
277
278
  }
278
279
  async request(endpoint, options = {}) {
@@ -819,6 +820,7 @@
819
820
  error: null,
820
821
  isAuthenticated: false,
821
822
  };
823
+ logger.debug("[PasskeymeAuth] Constructor called with config:", config);
822
824
  // Set default values
823
825
  const defaultRedirectUri = typeof window !== "undefined" && window.location && window.location.origin
824
826
  ? `${window.location.origin}/auth/callback`
@@ -845,6 +847,7 @@
845
847
  logger.enableDebug();
846
848
  logger.debug("[DEBUG] Logger debug mode enabled, testing logger...");
847
849
  logger.debug("[DEBUG] Logger config after enableDebug:", logger.getConfig());
850
+ logger.debug("config.baseUrl:", this.config.baseUrl);
848
851
  logger.debug("Logger test message - if you see this, logger is working");
849
852
  }
850
853
  logger.debug("Initialized with config:", this.config);