@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.esm.js +11 -3
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +11 -3
- package/dist/index.js.map +1 -1
- package/dist/index.umd.js +11 -3
- package/dist/index.umd.js.map +1 -1
- package/dist/src/passkeyme-auth.d.ts.map +1 -1
- package/dist/src/utils/logger.d.ts +4 -0
- package/dist/src/utils/logger.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -24,6 +24,12 @@ class Logger {
|
|
|
24
24
|
this.config.enabled = true;
|
|
25
25
|
this.config.level = "debug";
|
|
26
26
|
}
|
|
27
|
+
/**
|
|
28
|
+
* Get current logger configuration (for debugging)
|
|
29
|
+
*/
|
|
30
|
+
getConfig() {
|
|
31
|
+
return { ...this.config };
|
|
32
|
+
}
|
|
27
33
|
shouldLog(level) {
|
|
28
34
|
if (!this.config.enabled)
|
|
29
35
|
return false;
|
|
@@ -832,6 +838,7 @@ class PasskeymeAuth {
|
|
|
832
838
|
if (this.config.debug) {
|
|
833
839
|
logger.enableDebug();
|
|
834
840
|
console.log("[DEBUG] Logger debug mode enabled, testing logger...");
|
|
841
|
+
console.log("[DEBUG] Logger config after enableDebug:", logger.getConfig());
|
|
835
842
|
logger.debug("Logger test message - if you see this, logger is working");
|
|
836
843
|
}
|
|
837
844
|
logger.debug("Initialized with config:", this.config);
|
|
@@ -1546,11 +1553,11 @@ class PasskeymeAuth {
|
|
|
1546
1553
|
}
|
|
1547
1554
|
// Try to get stored username for fallback
|
|
1548
1555
|
const storageKey = `last_username_${this.config.appId}`;
|
|
1549
|
-
|
|
1556
|
+
console.log("Looking for stored username with key:", storageKey);
|
|
1550
1557
|
const storedUsername = await this.storage.getItem(storageKey);
|
|
1551
|
-
|
|
1558
|
+
console.log("Found stored username:", storedUsername);
|
|
1552
1559
|
if (storedUsername) {
|
|
1553
|
-
|
|
1560
|
+
console.log("Using stored username for targeted authentication:", storedUsername);
|
|
1554
1561
|
authUsername = storedUsername;
|
|
1555
1562
|
}
|
|
1556
1563
|
else {
|
|
@@ -1638,6 +1645,7 @@ class PasskeymeAuth {
|
|
|
1638
1645
|
return this._appConfigPromise;
|
|
1639
1646
|
}
|
|
1640
1647
|
}
|
|
1648
|
+
// Test comment
|
|
1641
1649
|
|
|
1642
1650
|
/**
|
|
1643
1651
|
* HTTP interceptors for automatic token management
|