diff --git a/lib/utils/web-auth.js b/lib/utils/web-auth.js index 5c291fabb5fa9..b995998809c43 100644 --- a/lib/utils/web-auth.js +++ b/lib/utils/web-auth.js @@ -13,10 +13,8 @@ async function webAuth (opener, initialUrl, doneUrl, opts) { return authResult }) - return Promise.all([openPromise, webAuthCheckPromise]).then( - // pick the auth result and pass it along - ([, authResult]) => authResult - ) + await openPromise + return await webAuthCheckPromise } module.exports = webAuth