@passkeyme/auth 2.0.5 → 2.0.7
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 +6 -2
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +6 -2
- package/dist/index.js.map +1 -1
- package/dist/index.umd.js +6 -2
- package/dist/index.umd.js.map +1 -1
- package/dist/src/passkeyme-auth.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.umd.js
CHANGED
|
@@ -821,13 +821,16 @@
|
|
|
821
821
|
error: null,
|
|
822
822
|
isAuthenticated: false,
|
|
823
823
|
};
|
|
824
|
-
console.log("[PasskeymeAuth] Constructor called with config:", config);
|
|
824
|
+
console.log("[PasskeymeAuth] Constructor called with config: ", config);
|
|
825
|
+
console.log("[DEBUG] config.baseUrl:", config.baseUrl);
|
|
826
|
+
console.log("[DEBUG] config.apiUrl:", config.apiUrl);
|
|
825
827
|
// Set default values
|
|
826
828
|
const defaultRedirectUri = typeof window !== "undefined" && window.location && window.location.origin
|
|
827
829
|
? `${window.location.origin}/auth/callback`
|
|
828
830
|
: "http://localhost:3000/auth/callback";
|
|
829
|
-
//
|
|
831
|
+
// Use baseUrl for auth endpoints, apiUrl is separate for API calls
|
|
830
832
|
const serverUrl = config.baseUrl || "https://auth.passkeyme.com";
|
|
833
|
+
console.log("[DEBUG] serverUrl determined as:", serverUrl);
|
|
831
834
|
this.config = {
|
|
832
835
|
appId: config.appId,
|
|
833
836
|
baseUrl: serverUrl,
|
|
@@ -836,6 +839,7 @@
|
|
|
836
839
|
debug: config.debug || false,
|
|
837
840
|
mode: config.mode || "hosted",
|
|
838
841
|
};
|
|
842
|
+
console.log("[DEBUG] this.config after setting:", this.config);
|
|
839
843
|
this.apiClient = new PasskeymeApiClient(this.config.appId, this.config.baseUrl, this.config.debug);
|
|
840
844
|
// Use provided storage or default to BrowserStorageProvider
|
|
841
845
|
const storage = config.storage || new BrowserStorageProvider();
|