diff options
author | Martin Kühl <mkhl@users.noreply.github.com> | 2018-08-03 19:05:29 +0300 |
---|---|---|
committer | Kat Marchán <kzm@zkat.tech> | 2018-08-03 19:05:29 +0300 |
commit | 6e9f04b0baed007169d4e0c341f097cf133debf7 (patch) | |
tree | 76ed10424149994b9cec4b09943f89bb026dd474 /doc | |
parent | c3ab25f3f54038a813f765845a72ee9f9d836d7d (diff) |
config: Search for authentication token defined by environment variable (#8)
As discussed on npm.community[1], the fact that
npm registry authentication tokens
cannot be defined using environment variables
does not seem justified anymore.
The restriction is caused by the config loader translating
* all `_` to `-`
* the whole variable name to lowercase
while the credential checker expects a key ending in `:_authToken`.
This change fixes the problem
by having the credential checker try
a key ending in `:-authtoken` after it tried `:_authToken`.
Fixes: https://npm.community/t/233
Fixes: npm/npm#15565
PR-URL: https://github.com/npm/cli/pull/8
Credit: @mkhl
Reviewed-By: @zkat
Diffstat (limited to 'doc')
0 files changed, 0 insertions, 0 deletions