I need to set up multiple npm authTokens that are for two different scopes, but both scopes are on the same registry.
@scope1:registry=https://registry.npmjs.org/
@scope2:registry=https://registry.npmjs.org/
//registry.npmjs.org/:_authToken=${NPM_TOKEN}
I have tried to add the an authToken to each scope like this:
@scope1:registry=https://registry.npmjs.org/:_authToken=${TOKEN_1}
@scope2:registry=https://registry.npmjs.org/:_authToken=${TOKEN_2}
But I get a 405
error when I try to install a package.
I tried reading docs, but I cannot find a way to specify different tokens for different scopes on the same registry.
I contacted the npm support and got the following response: