Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: The authorization window is already opened #2562

Open
williamhu99 opened this issue Jul 29, 2024 · 3 comments
Open

Error: The authorization window is already opened #2562

williamhu99 opened this issue Jul 29, 2024 · 3 comments
Labels

Comments

@williamhu99
Copy link

👋 I'm running into an issue on 0.42.2.

I have a onClick handler that I'm passing to a Button component:

const handleClick = async () => {
    nango.auth("salesforce", <id>);
};

When I click my Button, close the authorization window, and then click the Button again, I get this error: Error: The authorization window is already opened.

Copy link

linear bot commented Jul 29, 2024

@bastienbeurier bastienbeurier added the GitHub label Aug 23, 2024 — with Linear
@Zonalds
Copy link

Zonalds commented Sep 4, 2024

Any solution to this? I encounter this.

@danielvanacker
Copy link

danielvanacker commented Sep 20, 2024

In 0.42.11

I have tried passing the detectClosedAuthWindow param

 nango.auth('integration_identifier' ,conn_id, {
    detectClosedAuthWindow: true,
  }),

This works on localhost but in dev/prod it will always think the auth window has closed before auth is complete (screen recording included)

Screen.Recording.2024-09-20.at.11.47.23.mov

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants