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
2 people authored and hfaulds committed Jul 13, 2022
1 parent ac30d4c commit ed08d7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/utils/web-auth.js
Original file line number Diff line number Diff line change
@@ -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 ed08d7c

Please sign in to comment.