Having issues with PUT request to follow a channel

Ok. I did change that in my code and left it, because I think that actually is the proper way of doing it. I’m pretty sure it’s something to do with my headers.

Apparently a 401 error has to do with me being unauthorized, but that confuses me because I check if I’m authenticated with my code before calling Twitch.api, and I’ve run code to print out the results of Twitch.getToken() to check if I’m getting a valid token.