Immutable solution version
Nango frontend SDK throws authorization window was closed before the authorization flow was completed
Complete solution
Shows how to fix nango frontend SDK throws authorization window was closed before the authorization flow was completed. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.
TL;DR
Fixed in @nangohq/frontend 0.36.31 via PR #1299. Update the frontend SDK to that version or later.
Steps
- 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.
When to use
You are seeing this: The Nango frontend SDK throws The authorization window was closed before the authorization flow was completed even though the OAuth popup completes successfully. Use this skill when you run into "Nango frontend SDK throws authorization window was closed before the authorization flow was completed".
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
Versions mentioned in the source: nangohqfrontend 0.36.31. If you are on something much newer or older, the details may have shifted.
Why this happens
The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.
Sources
- 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 2 · 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>