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