diff --git a/lib/utils/otplease.js b/lib/utils/otplease.js index 0555106..2f46647 100644 --- a/lib/utils/otplease.js +++ b/lib/utils/otplease.js @@ -26,7 +26,7 @@ function otplease (opts, fn) { } function readOTP (msg, otp, isRetry) { - const read = require('read') + const read = BB.promisify(require('read')) if (!msg) { msg = [ 'This command requires a one-time password (OTP) from your authenticator app.',