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:
authorNathan Fritz <fritzy@github.com>2022-07-12 00:37:07 +0300
committerGar <wraithgar@github.com>2022-07-12 21:34:35 +0300
commitc6c4ba3b62e2a0896a48329f4c7e13d9e44a2f80 (patch)
treefa126df725820b9817f2da12c285608646a94cc1 /lib
parent52ec5ec61fd3b266efd7a9c5712dd6a769a2d365 (diff)
feat: notify on adduser of upcoming cmds, login and register
Diffstat (limited to 'lib')
-rw-r--r--lib/commands/adduser.js4
-rw-r--r--lib/utils/config/definitions.js6
2 files changed, 5 insertions, 5 deletions
diff --git a/lib/commands/adduser.js b/lib/commands/adduser.js
index cf467b7a7..29eb5acf8 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 6b35e7d4d..f58a26768 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.
`,