Skip to content

Conversation

@ej-sanmartin
Copy link

@ej-sanmartin ej-sanmartin commented Nov 18, 2025

Fixes #4964

Logical bug which can cause auth to error when an auth window is actually opened. Stems from a lingering window option that is null and confirmed to be null by issue author.

#4964

Pretty safe to remove since that seems to be the intention from 32b771e


Remove redundant null check in auth modal polling loop

Eliminates a condition that always evaluated to false (this.win.modal.window is consistently null) in the interval that monitors the popup authorization window. The new logic now only checks !this.win.modal.closed, preventing the flow from aborting when a real modal is open.

Key Changes

• Deleted if (this.win.modal.window && !this.win.modal.closed)
• Added simplified guard if (!this.win.modal.closed)

Affected Areas

packages/frontend/lib/index.tsauth() polling loop that detects popup closure


This summary was automatically generated by @propel-code-bot

@ej-sanmartin ej-sanmartin changed the title Remove always null this.win.modal.window check in auth flows. fixes: remove always null this.win.modal.window check in auth flows. Nov 20, 2025
@ej-sanmartin ej-sanmartin changed the title fixes: remove always null this.win.modal.window check in auth flows. fix: remove always null this.win.modal.window check in auth flows. Nov 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Frontend SDK: nango.auth with detectClosedAuthWindow will throw despite auth window being open.

1 participant