From b1a8729c80175243fbbeecd164e9ddd378a09a50 Mon Sep 17 00:00:00 2001 From: Kevin Gibbons Date: Wed, 29 Aug 2018 11:40:02 -0700 Subject: [PATCH] docs: mention --otp flag when prompting for OTP (#60) PR-URL: https://github.com/npm/cli/pull/60 Credit: @bakkot Reviewed-By: @zkat --- lib/utils/read-user-info.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/utils/read-user-info.js b/lib/utils/read-user-info.js index 445bdfeea3e8..1e8c86a52379 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')