We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ff2bd3e commit 7309c91Copy full SHA for 7309c91
packages/schematics/update/update/npm.ts
@@ -136,6 +136,7 @@ export function getNpmPackageJson(
136
getNpmConfigOption('strict-ssl'),
137
getNpmConfigOption('cafile'),
138
getNpmConfigOption('_auth', registryKey, true),
139
+ getNpmConfigOption('_authToken', registryKey, true),
140
getNpmConfigOption('username', registryKey, true),
141
getNpmConfigOption('password', registryKey, true),
142
getNpmConfigOption('alwaysAuth', registryKey, true),
@@ -148,6 +149,7 @@ export function getNpmPackageJson(
148
149
strictSsl,
150
cafile,
151
token,
152
+ authToken,
153
username,
154
password,
155
alwaysAuth,
@@ -158,7 +160,9 @@ export function getNpmPackageJson(
158
160
const sslOptions = getNpmClientSslOptions(strictSsl, cafile);
159
161
162
let auth;
- if (token) {
163
+ if (authToken) {
164
+ auth = { token: authToken, alwaysAuth };
165
+ } else if (token) {
166
auth = { token, alwaysAuth };
167
} else if (username) {
168
auth = { username, password, alwaysAuth };
0 commit comments