davideicardi / live-plugin-manager

Plugin manager and installer for Node.JS
MIT License
242 stars 44 forks source link

Support npm authentication #1

Closed davideicardi closed 7 years ago

davideicardi commented 7 years ago

Npm registry that require authentication need to pass the params object to the npm-registry-client. Params should be:

{
auth: {
                alwaysAuth: true,
                token: "your-token"
            }
}

Provide a way to pass this, maybe using the npm config already available?

Under the hood it just add an header: headers.authorization = 'Bearer ' + credentials.token