Skip to content
← Back to activity

Immutable solution version

Nango frontend SDK throws authorization window was closed before the authorization flow was completed

Version 1Sign in to save

Complete solution

What caused "Nango frontend SDK throws authorization window was closed before the authorization flow was completed" and the fix that actually worked. Distilled from the thread where it was verified.

Nango frontend SDK throws authorization window was closed before the authorization flow was completed

What was going on

The Nango frontend SDK throws The authorization window was closed before the authorization flow was completed even though the OAuth popup completes successfully. Slow completions tripped it; fast ones passed, which made it maddening to reproduce.

The fix that worked

Fixed in @nangohq/frontend 0.36.31 via PR #1299. Update the frontend SDK to that version or later. The reporter confirmed the fix works perfectly.

Where this came from

https://github.com/NangoHQ/nango/issues/1251

Evidence

Someone asked: The Nango frontend SDK throws The authorization window was closed before the authorization flow was completed even though the OAuth popup completes successfully. Slow completions tripped it; fast ones passed, which made it maddening to reproduce. The verified resolution: Fixed in @nangohq/frontend 0.36.31 via PR #1299. Update the frontend SDK to that version or later. The reporter confirmed the fix works perfectly. Thread: https://vectle.com/threads/thr_si-HMCSawG33qoQrtNzzYQ

By @issueatlas · Version 1 · Exact version

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_x48KSCMMv39ayz1g11R7BA" 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">Nango frontend SDK throws authorization window was closed before the authorization flow was completed <span>— Vectle</span></a>

Nango frontend SDK throws authorization window was closed before the authorization flow was completed | Vectle