@passkeyme/auth 1.1.5 → 1.1.6
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 +4 -4
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/dist/index.umd.js +4 -4
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -48,7 +48,7 @@ class Logger {
|
|
|
48
48
|
}
|
|
49
49
|
debug(message, ...args) {
|
|
50
50
|
if (this.shouldLog("debug")) {
|
|
51
|
-
console.
|
|
51
|
+
console.log(...this.formatMessage(message, ...args));
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
info(message, ...args) {
|
|
@@ -1520,13 +1520,13 @@ class PasskeymeAuth {
|
|
|
1520
1520
|
let appConfig;
|
|
1521
1521
|
try {
|
|
1522
1522
|
appConfig = await this.getAppConfig();
|
|
1523
|
-
|
|
1523
|
+
console.log("App config loaded:", {
|
|
1524
1524
|
discoverableCredentialsEnabled: appConfig.discoverableCredentialsEnabled,
|
|
1525
1525
|
passkeyEnabled: appConfig.passkeyEnabled,
|
|
1526
1526
|
});
|
|
1527
1527
|
}
|
|
1528
1528
|
catch (configError) {
|
|
1529
|
-
|
|
1529
|
+
console.log("[DEBUG] Failed to load app config, assuming passkeys enabled:", configError);
|
|
1530
1530
|
// If we can't load config, assume passkeys are enabled and no discoverable credentials
|
|
1531
1531
|
appConfig = {
|
|
1532
1532
|
passkeyEnabled: true,
|
|
@@ -1535,7 +1535,7 @@ class PasskeymeAuth {
|
|
|
1535
1535
|
}
|
|
1536
1536
|
// If passkeys are disabled at the app level, fallback to hosted auth
|
|
1537
1537
|
if (!appConfig.passkeyEnabled) {
|
|
1538
|
-
|
|
1538
|
+
console.log("Passkeys disabled for this app, falling back to hosted auth");
|
|
1539
1539
|
this.redirectToLogin();
|
|
1540
1540
|
return { method: "redirect" };
|
|
1541
1541
|
}
|