Skip to content

Commit

Permalink
Remove 'Promise.all'
Browse files Browse the repository at this point in the history
  • Loading branch information
jumoel authored and hfaulds committed Jul 13, 2022
1 parent ed08d7c commit 648cb04
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/utils/web-auth.js
Expand Up @@ -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

0 comments on commit 648cb04

Please sign in to comment.