Skip to content
This repository has been archived by the owner on Sep 21, 2021. It is now read-only.

How to handle "Uncaught Error: The user chose to ignore the dialog box"? #39

Closed
antifun opened this issue Aug 17, 2017 · 4 comments
Closed

Comments

@antifun
Copy link

antifun commented Aug 17, 2017

Is there a way to catch or handle this error (thrown if the user clicks "Ignore" when prompted to open a new window for oauth)?

I've got a .catch in place which is reached if the user closes the opened dialog prematurely, but there doesn't seem to be any higher level with which to wrap the call to authenticate.

authenticator
    .authenticate(`${subdomain}.${domain}`, force)
    .then(function(token) {
      console.log("got token", token)
      return token
    })
    .catch(function(err) {
      console.log("error authenticating (user closed dialog)", err)
    })
@WrathOfZombies
Copy link
Contributor

@IanVS Could you attach some screenshots/gif of the same. Given that the helpers works differently in different platforms, I'd need some visual cues to see how we can best help.

@IanVS
Copy link
Contributor

IanVS commented Aug 22, 2017

Sure, I posted some over in #40 (comment). But I didn't open this particular issue. Maybe you meant to ask @antifun?

@antifun
Copy link
Author

antifun commented Aug 22, 2017

Yes, I think (at least the way I have it configured in the manifest) that this only happens in the web app.

@WrathOfZombies
Copy link
Contributor

Closing this as a dupe. The referenced issue will track this.

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

No branches or pull requests

3 participants