From 76b8c6debe06d434c5252d1d4e7e676fa7ef7b39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julian=20M=C3=B8ller=20Ellehauge?= Date: Fri, 1 Jul 2022 10:49:00 +0200 Subject: [PATCH] Make `webAuth` async Co-authored-by: Jordan Harband --- lib/utils/web-auth.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/utils/web-auth.js b/lib/utils/web-auth.js index 1a7e227de2191..5c291fabb5fa9 100644 --- a/lib/utils/web-auth.js +++ b/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)