title: Sending bearer token to autorest typescript client
body: <p>I am using <strong>autorest</strong> to generate TypeScript clients for accessing RESTful web services. All REST api looks for bearer token for authentication but I didn't find a way to pass token to autogenerated TypeScript clients. </p>
  
  <p>I did try searching autorest documentation. It looks like I need to use ServiceClientCredentials but I didn't find any sample code. </p>
  
  <p>Does anyone know how to use ServiceClientCredentials in TypeScript?</p>
  
  <p>I use the following command to generate TypeScript clients</p>
  
  <pre><code>autorest --input-file=restapi.json --typescript --output-folder=./output --package-name="test-api" --package-version="0.1.0" --generate-metadata=true --add-credentials=true
  </code></pre>