@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.esm.js +4 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/dist/index.umd.js +4 -1
- package/dist/index.umd.js.map +1 -1
- package/dist/src/api-client.d.ts +1 -1
- package/dist/src/api-client.d.ts.map +1 -1
- package/dist/src/passkeyme-auth.d.ts.map +1 -1
- package/package.json +1 -1
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("[
|
|
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);
|