Skip to content

Commit 3c5146d

Browse files
fix: lower-case the npm username (#190) (#341)
Co-authored-by: Jeff Tian <Jeff.Tian@externals.adidas.com>
1 parent e0ed88d commit 3c5146d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/npm.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ async function getNpmToken({npm}) {
1313
let token;
1414

1515
try {
16-
const result = await profile.loginCouch(npm.username, npm.password, {registry: npm.registry});
16+
const result = await profile.loginCouch(npm.username.toLowerCase(), npm.password, {registry: npm.registry});
1717
token = result.token;
1818
} catch (error) {
1919
if (error.code === 'EOTP') {

0 commit comments

Comments
 (0)