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