Skip to content

Commit

Permalink
Docs: mention --otp flag when prompting for OTP
Browse files Browse the repository at this point in the history
  • Loading branch information
bakkot committed Aug 26, 2018
1 parent 58ece89 commit 770659b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/utils/read-user-info.js
Expand Up @@ -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).',
'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')
Expand Down

0 comments on commit 770659b

Please sign in to comment.