@passkeyme/auth 2.0.6 → 2.0.8

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