Skip to content

Commit

Permalink
Make webAuth async
Browse files Browse the repository at this point in the history
Co-authored-by: Jordan Harband <ljharb@gmail.com>
  • Loading branch information
jumoel and ljharb committed Jul 1, 2022
1 parent 1298d8e commit 76b8c6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/utils/web-auth.js
@@ -1,7 +1,7 @@
const EventEmitter = require('events')
const { webAuthCheckLogin } = require('npm-profile')

function webAuth (opener, initialUrl, doneUrl, opts) {
async function webAuth (opener, initialUrl, doneUrl, opts) {
const doneEmitter = new EventEmitter()

const openPromise = opener(initialUrl, doneEmitter)
Expand Down

0 comments on commit 76b8c6d

Please sign in to comment.