davideicardi / live-plugin-manager

Plugin manager and installer for Node.JS
MIT License
225 stars 43 forks source link

Support npm authentication #1

Closed davideicardi closed 6 years ago

davideicardi commented 6 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