@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.esm.js CHANGED
@@ -263,10 +263,11 @@ class PasskeymeApiClient {
263
263
  this.appId = appId;
264
264
  this.baseUrl = baseUrl.replace(/\/$/, ""); // Remove trailing slash
265
265
  this.debug = debug;
266
+ this.log("API Client initialized with baseUrl:", this.baseUrl);
266
267
  }
267
268
  log(...args) {
268
269
  if (this.debug) {
269
- logger.debug("[PasskeymeAuth]", ...args);
270
+ logger.debug("[PasskeymeApiClient]", ...args);
270
271
  }
271
272
  }
272
273
  async request(endpoint, options = {}) {
@@ -813,6 +814,7 @@ class PasskeymeAuth {
813
814
  error: null,
814
815
  isAuthenticated: false,
815
816
  };
817
+ logger.debug("[PasskeymeAuth] Constructor called with config:", config);
816
818
  // Set default values
817
819
  const defaultRedirectUri = typeof window !== "undefined" && window.location && window.location.origin
818
820
  ? `${window.location.origin}/auth/callback`
@@ -839,6 +841,7 @@ class PasskeymeAuth {
839
841
  logger.enableDebug();
840
842
  logger.debug("[DEBUG] Logger debug mode enabled, testing logger...");
841
843
  logger.debug("[DEBUG] Logger config after enableDebug:", logger.getConfig());
844
+ logger.debug("config.baseUrl:", this.config.baseUrl);
842
845
  logger.debug("Logger test message - if you see this, logger is working");
843
846
  }
844
847
  logger.debug("Initialized with config:", this.config);