Fetching a token returns `bearer` but Helix doesn't accept `bearer`
When you get a token, it returns token_type as bearer
If you take this value as is and call helix endpoints it doesn't work as helix only accepts Bearer
How to reproduce
Generate a token
Construct a header using the returned data by concatenating elements from the returned JSON
`Authorization: ' . tokentype . ' ' . accesstoken
Call a helix endpoint
Get a 401
Twitch accepts Bearer and bearer as valid
returns Bearer as the token type when fetching a token.
Additional context or questions
I'm not sure what the correct solutions is after a brief perusal of the RFC's
Hey Barry, I'm curious to know if this is a common problem seen on the forums. All examples capitalize it, but I can understand the expectation that token_type can be used in the same capitalization that is returned when getting a token.