Skip to content

Commit d00685b

Browse files
committed
Re-add webauthn
1 parent a65bd05 commit d00685b

File tree

8 files changed

+19
-18
lines changed

8 files changed

+19
-18
lines changed

docs/content/commands/npm-adduser.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,9 @@ npm init --scope=@foo --yes
9393
#### `auth-type`
9494

9595
* Default: "legacy"
96-
* Type: "legacy", "web", "sso", "saml", or "oauth"
97-
* DEPRECATED: The SSO/SAML/OAuth methods are deprecated and will be removed in
98-
a future version of npm in favor of web-based login.
96+
* Type: "legacy", "web", "sso", "saml", "oauth", or "webauthn"
97+
* DEPRECATED: The SSO/SAML/OAuth/Webauthn methods are deprecated and will be
98+
removed in a future version of npm in favor of web-based login.
9999

100100
What authentication strategy to use with `adduser`/`login`.
101101

docs/content/using-npm/config.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1908,9 +1908,9 @@ When set to `dev` or `development`, this is an alias for `--include=dev`.
19081908
#### `auth-type`
19091909

19101910
* Default: "legacy"
1911-
* Type: "legacy", "web", "sso", "saml", or "oauth"
1912-
* DEPRECATED: The SSO/SAML/OAuth methods are deprecated and will be removed in
1913-
a future version of npm in favor of web-based login.
1911+
* Type: "legacy", "web", "sso", "saml", "oauth", or "webauthn"
1912+
* DEPRECATED: The SSO/SAML/OAuth/Webauthn methods are deprecated and will be
1913+
removed in a future version of npm in favor of web-based login.
19141914

19151915
What authentication strategy to use with `adduser`/`login`.
19161916

lib/commands/adduser.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ const BaseCommand = require('../base-command.js')
44
const authTypes = {
55
legacy: require('../auth/legacy.js'),
66
web: require('../auth/legacy.js'),
7+
webauthn: require('../auth/legacy.js'),
78
oauth: require('../auth/oauth.js'),
89
saml: require('../auth/saml.js'),
910
sso: require('../auth/sso.js'),

lib/utils/config/definitions.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,9 +238,9 @@ define('audit-level', {
238238

239239
define('auth-type', {
240240
default: 'legacy',
241-
type: ['legacy', 'web', 'sso', 'saml', 'oauth'],
241+
type: ['legacy', 'web', 'sso', 'saml', 'oauth', 'webauthn'],
242242
deprecated: `
243-
The SSO/SAML/OAuth methods are deprecated and will be removed in
243+
The SSO/SAML/OAuth/Webauthn methods are deprecated and will be removed in
244244
a future version of npm in favor of web-based login.
245245
`,
246246
description: `

tap-snapshots/test/lib/load-all-commands.js.test.cjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ npm adduser
3333
3434
Options:
3535
[--registry <registry>] [--scope <@scope>]
36-
[--auth-type <legacy|web|sso|saml|oauth>]
36+
[--auth-type <legacy|web|sso|saml|oauth|webauthn>]
3737
3838
aliases: login, add-user
3939
@@ -499,7 +499,7 @@ npm adduser
499499
500500
Options:
501501
[--registry <registry>] [--scope <@scope>]
502-
[--auth-type <legacy|web|sso|saml|oauth>]
502+
[--auth-type <legacy|web|sso|saml|oauth|webauthn>]
503503
504504
aliases: login, add-user
505505

tap-snapshots/test/lib/npm.js.test.cjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ All commands:
190190
191191
Options:
192192
[--registry <registry>] [--scope <@scope>]
193-
[--auth-type <legacy|web|sso|saml|oauth>]
193+
[--auth-type <legacy|web|sso|saml|oauth|webauthn>]
194194
195195
aliases: login, add-user
196196
@@ -577,7 +577,7 @@ All commands:
577577
578578
Options:
579579
[--registry <registry>] [--scope <@scope>]
580-
[--auth-type <legacy|web|sso|saml|oauth>]
580+
[--auth-type <legacy|web|sso|saml|oauth|webauthn>]
581581
582582
aliases: login, add-user
583583

tap-snapshots/test/lib/utils/config/definitions.js.test.cjs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -253,9 +253,9 @@ exports[`test/lib/utils/config/definitions.js TAP > config description for auth-
253253
#### \`auth-type\`
254254
255255
* Default: "legacy"
256-
* Type: "legacy", "web", "sso", "saml", or "oauth"
257-
* DEPRECATED: The SSO/SAML/OAuth methods are deprecated and will be removed in
258-
a future version of npm in favor of web-based login.
256+
* Type: "legacy", "web", "sso", "saml", "oauth", or "webauthn"
257+
* DEPRECATED: The SSO/SAML/OAuth/Webauthn methods are deprecated and will be
258+
removed in a future version of npm in favor of web-based login.
259259
260260
What authentication strategy to use with \`adduser\`/\`login\`.
261261

tap-snapshots/test/lib/utils/config/describe-all.js.test.cjs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1781,9 +1781,9 @@ When set to \`dev\` or \`development\`, this is an alias for \`--include=dev\`.
17811781
#### \`auth-type\`
17821782
17831783
* Default: "legacy"
1784-
* Type: "legacy", "web", "sso", "saml", or "oauth"
1785-
* DEPRECATED: The SSO/SAML/OAuth methods are deprecated and will be removed in
1786-
a future version of npm in favor of web-based login.
1784+
* Type: "legacy", "web", "sso", "saml", "oauth", or "webauthn"
1785+
* DEPRECATED: The SSO/SAML/OAuth/Webauthn methods are deprecated and will be
1786+
removed in a future version of npm in favor of web-based login.
17871787
17881788
What authentication strategy to use with \`adduser\`/\`login\`.
17891789

0 commit comments

Comments
 (0)