Usage of Bearer Tokens in https request
<p>I'm trying to connect to an API using 'auth' in the options. Currently it looks like this:</p>

<pre><code>var options = {        
hostname: '&lt;name of site&gt;',
        port: 443,
        path: '&lt;path&gt;',
        auth:'Bearer &lt;Token&gt;',
        method: 'GET'
};
</code></pre>

<p>However, I get Status Code 403 if I execute the request. When I put the following URL in the browser, it works:</p>

<pre><code>https://&lt;Host Name+ Path&gt;?authorization=Bearer%20&lt;Token&gt;
</code></pre>

<p>I've already tried to change auth into <code>Authorization=Bearer &lt;Token&gt;</code> and <code>Authorisation:Bearer &lt;Token&gt;</code> but it didn't changed anything.</p>

<p>I'm probably just setting up the authorisation part not correctly, but couldn't find any info how <code>auth</code> works</p>

<p>Thanks in advance</p>