diff --git a/lib/commands/adduser.js b/lib/commands/adduser.js index cf467b7a73a5e..29eb5acf870d6 100644 --- a/lib/commands/adduser.js +++ b/lib/commands/adduser.js @@ -28,6 +28,10 @@ class AddUser extends BaseCommand { log.disableProgress() + log.warn('adduser', + '`adduser` will be split into `login` and `register in a future version.' + + ' `adduser` will become an alias of `register`.' + + ' `login` (currently an alias) will become its own command.') log.notice('', `Log in on ${replaceInfo(registry)}`) const { message, newCreds } = await auth(this.npm, { diff --git a/lib/utils/config/definitions.js b/lib/utils/config/definitions.js index 6b35e7d4d05b4..f58a26768f551 100644 --- a/lib/utils/config/definitions.js +++ b/lib/utils/config/definitions.js @@ -239,12 +239,8 @@ define('audit-level', { define('auth-type', { default: 'legacy', type: ['legacy', 'webauthn', 'sso', 'saml', 'oauth'], - deprecated: ` - The SSO/SAML/OAuth methods are deprecated and will be removed in - a future version of npm in favor of web-based login. - `, description: ` - What authentication strategy to use with \`adduser\`/\`login\`. + What authentication strategy to use with \`login\`. Pass \`webauthn\` to use a web-based login. `,