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/utils
diff options
context:
space:
mode:
authorJulian Møller Ellehauge <jumoel@github.com>2022-06-02 00:11:58 +0300
committerGitHub <noreply@github.com>2022-06-02 00:11:58 +0300
commita8ae17775a24ccbaf4570530d7433e0d290b3793 (patch)
tree6104c2ef20d04c475f45be88146ebbe23b73cb1d /lib/utils
parentaee6fc857458ac660bf90ecd0af94212c7269fd7 (diff)
feat: Add `--auth-type=webauthn` flag (#4931)
* feat: Add --use-webauth flag * Add docs * Switch from a separate flag to a variation of auth-type * Update snapshot
Diffstat (limited to 'lib/utils')
-rw-r--r--lib/utils/config/definitions.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/utils/config/definitions.js b/lib/utils/config/definitions.js
index 92fbbd1e6..4032c552e 100644
--- a/lib/utils/config/definitions.js
+++ b/lib/utils/config/definitions.js
@@ -238,13 +238,15 @@ define('audit-level', {
define('auth-type', {
default: 'legacy',
- type: ['legacy', 'sso', 'saml', 'oauth'],
+ type: ['legacy', 'webauthn', 'sso', 'saml', 'oauth'],
deprecated: `
- This method of SSO/SAML/OAuth is deprecated and will be removed in
+ 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\`.
+
+ Pass \`webauthn\` to use a web-based login.
`,
flatten,
})