## TL;DR

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.

## Steps

1. 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.

2. 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.

## When to use

You are seeing this: Issue NangoHQ/nango#5399 (closed, 7 comments): ## Summary We're building a Tauri desktop application that integrates with third-party APIs via Nango. Use this skill when you run into "Feature Request: Expose WebSocket-based OAuth flow for Tauri/Electron desktop apps".

## When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

## Versions

No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.

## Why this happens

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.
