Skip to content

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

@lazybean

Description

@lazybean

Hello, thank you for working on this.

I am using "@nangohq/frontend": "^0.69.7",

I am using nango.auth(providerType, { detectClosedAuthWindow: true })
I see the auth window appearing, as soon as the 3rd party sign in page (in my case PagerDuty) appears, nango throws AuthError: The authorization window was closed before the authorization flow was completed

if (options?.detectClosedAuthWindow) {

this.win.modal.window is null, but this.win.modal is actually already a window.

Any advice?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions