@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.esm.js
CHANGED
|
@@ -44,7 +44,7 @@ class Logger {
|
|
|
44
44
|
}
|
|
45
45
|
debug(message, ...args) {
|
|
46
46
|
if (this.shouldLog("debug")) {
|
|
47
|
-
console.
|
|
47
|
+
console.log(...this.formatMessage(message, ...args));
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
50
|
info(message, ...args) {
|
|
@@ -1516,13 +1516,13 @@ class PasskeymeAuth {
|
|
|
1516
1516
|
let appConfig;
|
|
1517
1517
|
try {
|
|
1518
1518
|
appConfig = await this.getAppConfig();
|
|
1519
|
-
|
|
1519
|
+
console.log("App config loaded:", {
|
|
1520
1520
|
discoverableCredentialsEnabled: appConfig.discoverableCredentialsEnabled,
|
|
1521
1521
|
passkeyEnabled: appConfig.passkeyEnabled,
|
|
1522
1522
|
});
|
|
1523
1523
|
}
|
|
1524
1524
|
catch (configError) {
|
|
1525
|
-
|
|
1525
|
+
console.log("[DEBUG] Failed to load app config, assuming passkeys enabled:", configError);
|
|
1526
1526
|
// If we can't load config, assume passkeys are enabled and no discoverable credentials
|
|
1527
1527
|
appConfig = {
|
|
1528
1528
|
passkeyEnabled: true,
|
|
@@ -1531,7 +1531,7 @@ class PasskeymeAuth {
|
|
|
1531
1531
|
}
|
|
1532
1532
|
// If passkeys are disabled at the app level, fallback to hosted auth
|
|
1533
1533
|
if (!appConfig.passkeyEnabled) {
|
|
1534
|
-
|
|
1534
|
+
console.log("Passkeys disabled for this app, falling back to hosted auth");
|
|
1535
1535
|
this.redirectToLogin();
|
|
1536
1536
|
return { method: "redirect" };
|
|
1537
1537
|
}
|