title: What is the normal way of getting rid of the Bearer prefix in bearer token before decoding it?
body: <p>The client sends a bearer token to the server and it looks like so:</p>
  
  <pre><code>Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c
  </code></pre>
  
  <p>Apparently I don't need the 'Bearer' prefix so I have to get rid of it. I understand it is as simple as splitting the string and taking the right element but what I do not understand is why the library function I'm using doesn't do it for me.
  I also have to check if the token is actually of the right type (which is bearer in this case). It forces me to write additional lines of code and I don't like it.</p>
  
  <p>So my question is "Are there any smarter ways of processing the token?"</p>
  
  <p>I'm using <code>PyJWT</code>.</p>