Skip to content

Commit c6c4ba3

Browse files
fritzywraithgar
authored andcommitted
feat: notify on adduser of upcoming cmds, login and register
1 parent 52ec5ec commit c6c4ba3

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

lib/commands/adduser.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ class AddUser extends BaseCommand {
2828

2929
log.disableProgress()
3030

31+
log.warn('adduser',
32+
'`adduser` will be split into `login` and `register in a future version.'
33+
+ ' `adduser` will become an alias of `register`.'
34+
+ ' `login` (currently an alias) will become its own command.')
3135
log.notice('', `Log in on ${replaceInfo(registry)}`)
3236

3337
const { message, newCreds } = await auth(this.npm, {

lib/utils/config/definitions.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -239,12 +239,8 @@ define('audit-level', {
239239
define('auth-type', {
240240
default: 'legacy',
241241
type: ['legacy', 'webauthn', 'sso', 'saml', 'oauth'],
242-
deprecated: `
243-
The SSO/SAML/OAuth methods are deprecated and will be removed in
244-
a future version of npm in favor of web-based login.
245-
`,
246242
description: `
247-
What authentication strategy to use with \`adduser\`/\`login\`.
243+
What authentication strategy to use with \`login\`.
248244
249245
Pass \`webauthn\` to use a web-based login.
250246
`,

0 commit comments

Comments
 (0)