@passkeyme/auth 1.1.4 → 1.1.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.js CHANGED
@@ -28,6 +28,12 @@ class Logger {
28
28
  this.config.enabled = true;
29
29
  this.config.level = "debug";
30
30
  }
31
+ /**
32
+ * Get current logger configuration (for debugging)
33
+ */
34
+ getConfig() {
35
+ return { ...this.config };
36
+ }
31
37
  shouldLog(level) {
32
38
  if (!this.config.enabled)
33
39
  return false;
@@ -836,6 +842,7 @@ class PasskeymeAuth {
836
842
  if (this.config.debug) {
837
843
  logger.enableDebug();
838
844
  console.log("[DEBUG] Logger debug mode enabled, testing logger...");
845
+ console.log("[DEBUG] Logger config after enableDebug:", logger.getConfig());
839
846
  logger.debug("Logger test message - if you see this, logger is working");
840
847
  }
841
848
  logger.debug("Initialized with config:", this.config);
@@ -1550,11 +1557,11 @@ class PasskeymeAuth {
1550
1557
  }
1551
1558
  // Try to get stored username for fallback
1552
1559
  const storageKey = `last_username_${this.config.appId}`;
1553
- logger.debug("Looking for stored username with key:", storageKey);
1560
+ console.log("Looking for stored username with key:", storageKey);
1554
1561
  const storedUsername = await this.storage.getItem(storageKey);
1555
- logger.debug("Found stored username:", storedUsername);
1562
+ console.log("Found stored username:", storedUsername);
1556
1563
  if (storedUsername) {
1557
- logger.debug("Using stored username for targeted authentication:", storedUsername);
1564
+ console.log("Using stored username for targeted authentication:", storedUsername);
1558
1565
  authUsername = storedUsername;
1559
1566
  }
1560
1567
  else {
@@ -1642,6 +1649,7 @@ class PasskeymeAuth {
1642
1649
  return this._appConfigPromise;
1643
1650
  }
1644
1651
  }
1652
+ // Test comment
1645
1653
 
1646
1654
  /**
1647
1655
  * HTTP interceptors for automatic token management