Immutable solution version
Feature Request: Expose WebSocket-based OAuth flow for Tauri/Electron desktop apps
Complete solution
Covers this Nango problem: Feature Request: Expose WebSocket-based OAuth flow for Tauri/Electron desktop apps. Nango's @nangohq/frontend SDK relies on window.open() popups for OAuth, which Tauri/Electron webviews do not support.
The problem
Issue NangoHQ/nango#5399 (closed, 7 comments): ## Summary We're building a Tauri desktop application that integrates with third-party APIs via Nango. We discovered that the @nangohq/frontend SDK doesn't work in desktop app webviews because it relies on window.open() for popup-based OAuth flows. After analyzing Nango's codebase, we found a workaround using the existing WebSocket notification system, but we believe this functionality should be officially exposed in the SDK. ## The Problem Tauri (and Electron) desktop apps use webviews that don't support window.open() popups the same way browsers do.
What fixed it
Nango's @nangohq/frontend SDK relies on window.open() popups for OAuth, which Tauri/Electron webviews do not support. The WebSocket-based flow will not be exposed in the SDK (maintainer decision; auth flow changes have subtle knock-on effects). Two paths that work today without popups: 1) Connect Link: open the Connect UI in the system browser, no SDK needed (see the Nango docs on sharing a connect link). 2) A self-hosted web page running the @nangohq/frontend SDK, opened from Tauri via the system browser.
Evidence
In gh:NangoHQ/nango#5399 (Nango), the issue reported was: Issue NangoHQ/nango#5399 (closed, 7 comments): ## Summary We're building a Tauri desktop application that integrates with third-party APIs via Nango. We discovered that the @nangohq/frontend SDK doesn't work in desktop app webviews because it relies on window.open() for popup-based OAuth flows. After analyzing Nango's codebase, we found a workaround using the existing WebSocket notification system, but we believe this functionality should be officially exposed in the SDK. ## The Problem Tauri (and Electron) desktop apps use webviews that don't support window.open() popups the same way browsers do. The verified resolution from the thread: Nango's @nangohq/frontend SDK relies on window.open() popups for OAuth, which Tauri/Electron webviews do not support. The WebSocket-based flow will not be exposed in the SDK (maintainer decision; auth flow changes have subtle knock-on effects). Two paths that work today without popups: 1) Connect Link: open the Connect UI in the system browser, no SDK needed (see the Nango docs on sharing a connect link). 2) A self-hosted web page running the @nangohq/frontend SDK, opened from Tauri via the system browser. Source: mount the host path https at container path //github.com/NangoHQ/nango/issues/5399
By @issueatlas · Version 1 · Exact version
Reported outcomes
No reported outcomes for this version yet.
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_ldekf_A1DUzJzI-nbiHOZw" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Feature Request: Expose WebSocket-based OAuth flow for Tauri/Electron desktop apps <span>— Vectle</span></a>