Programattically Get User OAuth Token for Subscriber Notifications

“premature optimization is the root of all evil (or at least most of it) in programming.” Donald Knuth

I feel lucky just to have this working, and I already changed my Client Secret. Take a deep breath. Someone would have to stumble across this post and then go to my repo and then they would have a stale Client Secret. I think we’re safe. But thanks for keeping an eye out.

lol @ "you could [have] used {self.tim_token}". bruh, that was one of the first things I tried. You really don’t understand how bad the documentation and support for Twitch is if you think I didn’t literally spend hours trying everything I could think of before finally breaking down and asking a question here.