@base44-preview/sdk 0.7.2-pr.27.e9d1e3b → 0.7.2-pr.30.51b5464

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.
@@ -39,7 +39,7 @@ export function createAuthModule(axios, functionsAxiosClient, appId, options) {
39
39
  // If nextUrl is not provided, use the current URL
40
40
  const redirectUrl = nextUrl || window.location.href;
41
41
  // Build the login URL
42
- const loginUrl = `/login?from_url=${encodeURIComponent(redirectUrl)}`;
42
+ const loginUrl = `${options.serverUrl}/login?from_url=${encodeURIComponent(redirectUrl)}&app_id=${appId}`;
43
43
  // Redirect to the login page
44
44
  window.location.href = loginUrl;
45
45
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@base44-preview/sdk",
3
- "version": "0.7.2-pr.27.e9d1e3b",
3
+ "version": "0.7.2-pr.30.51b5464",
4
4
  "description": "JavaScript SDK for Base44 API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",