@passkeyme/auth 2.0.13 → 2.1.0

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
@@ -1018,10 +1018,7 @@ class PasskeymeAuth {
1018
1018
  redirectToOAuth(provider, redirectUri) {
1019
1019
  const finalRedirectUri = redirectUri || this.config.redirectUri;
1020
1020
  // Build direct OAuth initiation URL - use apiUrl for backend API endpoints
1021
- const apiBaseUrl = this.config.apiUrl ||
1022
- (typeof window !== "undefined" && window.location.hostname !== "localhost"
1023
- ? "https://api.passkeyme.com"
1024
- : "http://localhost:8000");
1021
+ const apiBaseUrl = this.config.apiUrl || "https://api.passkeyme.com";
1025
1022
  const params = new URLSearchParams({
1026
1023
  redirect_uri: finalRedirectUri,
1027
1024
  });