Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorKevin Gibbons <bakkot@gmail.com>2018-08-29 21:40:02 +0300
committerKat Marchán <kzm@zkat.tech>2018-08-29 21:40:02 +0300
commitb1a8729c80175243fbbeecd164e9ddd378a09a50 (patch)
tree986c5c31e40f5cf9cd1bad2135b399fcf7096f06 /lib
parent59e5056a2129cb2951f4ff3b657ada20657f01a7 (diff)
docs: mention --otp flag when prompting for OTP (#60)
PR-URL: https://github.com/npm/cli/pull/60 Credit: @bakkot Reviewed-By: @zkat
Diffstat (limited to 'lib')
-rw-r--r--lib/utils/read-user-info.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/utils/read-user-info.js b/lib/utils/read-user-info.js
index 445bdfeea..1e8c86a52 100644
--- a/lib/utils/read-user-info.js
+++ b/lib/utils/read-user-info.js
@@ -21,9 +21,9 @@ function read (opts) {
function readOTP (msg, otp, isRetry) {
if (!msg) {
msg = [
- 'There was an error while trying authentication due to OTP (One-Time-Password).',
- 'The One-Time-Password is generated via applications like Authy or',
- 'Google Authenticator, for more information see:',
+ 'This command requires a one-time password (OTP) from your authenticator app.',
+ 'Enter one below. You can also pass one on the command line by appending --otp=123456.',
+ 'For more information, see:',
'https://docs.npmjs.com/getting-started/using-two-factor-authentication',
'Enter OTP: '
].join('\n')