Verify a JWT token string, containing 'Bearer ' with NodeJS
<p>I send a header in a recommended form <code>Authorization: Bearer &lt;token&gt;</code>.</p>

<p>As it looks, token string, which is <code>'Bearer &lt;token&gt;'</code>, is not a token, but needs the <code>'Bearer '</code> substring to be removed first to get the token string itself.</p>

<p>I wonder, if it's a regular practice to remove it manually from code, like this:</p>

<pre><code>const token = authHeaderValue.replace('Bearer ', '')
</code></pre>

<p>before decoding and verifying it?</p>

<p>Why do I need this <code>'Bearer '</code> string in my custom application?</p>