@buildbase/sdk 0.0.49 → 0.0.50

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.
@@ -1842,8 +1842,14 @@ declare function validateRedirectUrl(url: string | null | undefined): string | n
1842
1842
  /**
1843
1843
  * Safely redirect to a URL after validating it.
1844
1844
  * Falls back to fallbackUrl if the target URL is invalid.
1845
+ *
1846
+ * Browser-only: navigation requires `window.location`. On non-browser runtimes
1847
+ * (Node, edge, Deno, Bun) there is nothing to navigate, so this is a no-op that
1848
+ * returns `false`. Returns `true` when a navigation was initiated. Server code
1849
+ * that needs the resolved target should call {@link validateRedirectUrl} and
1850
+ * issue the redirect with its own framework (e.g. `Response.redirect`).
1845
1851
  */
1846
- declare function safeRedirect(url: string | null | undefined, fallbackUrl?: string): void;
1852
+ declare function safeRedirect(url: string | null | undefined, fallbackUrl?: string): boolean;
1847
1853
 
1848
1854
  /**
1849
1855
  * Auth intent preservation — saves and restores the URL the user was on