Skip to content

Commit 76b8c6d

Browse files
jumoelljharb
andauthored
Make webAuth async
Co-authored-by: Jordan Harband <ljharb@gmail.com>
1 parent 1298d8e commit 76b8c6d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/utils/web-auth.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const EventEmitter = require('events')
22
const { webAuthCheckLogin } = require('npm-profile')
33

4-
function webAuth (opener, initialUrl, doneUrl, opts) {
4+
async function webAuth (opener, initialUrl, doneUrl, opts) {
55
const doneEmitter = new EventEmitter()
66

77
const openPromise = opener(initialUrl, doneEmitter)

0 commit comments

Comments
 (0)