title: How should I use artifactory access token for access to npm repo
body: <p>I would like to use an access token to publish and retrieve from an artifactory npm repo from a CI environment. I have created a Bearer token using the artifactory API but when I try and use that for access in the .npmrc with the format:</p>
  
  <pre><code>//mydomain.jrog.io/:_authToken=myveryverylongaccesstoken
  registry=https://mydomain.jfrog.io/mydomain/api/npm/npm
  </code></pre>
  
  <p>I always receive 401 errors back.</p>
  
  <p>In addition, though perhaps a different issue, if I try to use npm login with my actual artifactory credentials I get the response:</p>
  
  <pre><code>adduser Incorrect username or password
  npm WARN adduser You can reset your account by visiting:
  npm WARN adduser 
  npm WARN adduser     https://npmjs.org/forgot
  npm WARN adduser 
  npm ERR! code E403
  npm ERR! forbidden No oauth npm default login configuration found: org.couchdb.user:myusername
  </code></pre>
  
  <p>The artifactory docs around access tokens explicitly say this is the sort of use case to set up an access token, but the docs around setting up the npm repo alwyas seem to imply you need a real user account and make no mention of access tokens...</p>