@base44-preview/sdk 0.7.2-dev.65e038a → 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.
- package/dist/modules/auth.js +1 -1
- package/package.json +1 -1
package/dist/modules/auth.js
CHANGED
|
@@ -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 =
|
|
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
|
},
|