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

'The sign in flow was canceled' due to return missing #79

Open
daesign-dev opened this issue Jul 16, 2018 · 0 comments
Open

'The sign in flow was canceled' due to return missing #79

daesign-dev opened this issue Jul 16, 2018 · 0 comments

Comments

@daesign-dev
Copy link

When I connect via custom Provider, the popup dialog open and close immediatly because I was already authentified. Yet, I receive a reject('The sign in flow was canceled').
I saw (browser.js)

setTimeout(function watchPopup() {
                try {
                    if (popup.closed) {
                        return reject(new Error("The \"" + options.providerName + "\" sign in flow was canceled"));
                    }
                    if (popup.location.href.indexOf(options.resolveOnUri) === 0) {
                        popup.close();
                        resolve({ url: popup.location.href });
                    }
                }
                catch (e) {
                }
                setTimeout(watchPopup, watchDelay);
            }, watchDelay);

What's happen :

  • I receive the resolve
  • it continue the setTimeout,
  • the popup close
  • I receive the reject.

I add a return after the resolve, and it works.

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

No branches or pull requests

1 participant