web-manager 4.0.37 → 4.0.38
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/README.md +1 -1
- package/dist/index.js +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -249,7 +249,7 @@ Manager.utilities(); // Utility functions
|
|
|
249
249
|
Manager.isDevelopment(); // Check if in development mode
|
|
250
250
|
Manager.getFunctionsUrl(); // Get Firebase Functions URL
|
|
251
251
|
Manager.getFunctionsUrl('development'); // Force development URL
|
|
252
|
-
Manager.getApiUrl(); // Get API URL (derived from
|
|
252
|
+
Manager.getApiUrl(); // Get API URL (derived from firebase authDomain)
|
|
253
253
|
Manager.isValidRedirectUrl('https://...'); // Validate redirect URL
|
|
254
254
|
|
|
255
255
|
// Firebase instances (after initialization)
|
package/dist/index.js
CHANGED
|
@@ -458,8 +458,8 @@ class Manager {
|
|
|
458
458
|
return 'http://localhost:5002';
|
|
459
459
|
}
|
|
460
460
|
|
|
461
|
-
|
|
462
|
-
const apiDomain = this.config.brand.url;
|
|
461
|
+
const apiDomain = this.config.firebase.app.config.authDomain; // Has to be this since some projects like Clockii use ITW Universal Auth
|
|
462
|
+
// const apiDomain = this.config.brand.url;
|
|
463
463
|
const baseUrl = url || (apiDomain ? `https://${apiDomain}` : window.location.origin);
|
|
464
464
|
const urlObj = new URL(baseUrl);
|
|
465
465
|
const hostnameParts = urlObj.hostname.split('.');
|
package/package.json
CHANGED