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

feat: Allow the done-check for web login to cancel opener promise #50

Merged
merged 1 commit into from Jun 8, 2022

Conversation

jumoel
Copy link
Contributor

@jumoel jumoel commented May 31, 2022

What

  • Run the URL opener and the done-check promises in parallel
  • Finish when both promises are resolved
  • Allow the done-check to resolve the opener promise

Why

Allows the npm CLI to prompt and wait before opening a URL, while having the flow dependent on the authorization result.

References

@jumoel jumoel merged commit aa82de0 into main Jun 8, 2022
@jumoel jumoel deleted the jumoel/allow-weblogin-to-cancel-opener branch June 8, 2022 16:16
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.

None yet

2 participants