Skip to content

Commit

Permalink
Remove 'Promise.all'
Browse files Browse the repository at this point in the history
  • Loading branch information
jumoel committed Jul 1, 2022
1 parent 76b8c6d commit a95b9f6
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/utils/web-auth.js
Original file line number Diff line number Diff line change
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 a95b9f6

Please sign in to comment.