The documentation documents it as https://id.twitch.tv/oauth2/token which is a differnet URL/Resourse to what you are calling https://id.twitch.tv/oauth2/token/
The no slash on the end is important.
The documentation documents it as https://id.twitch.tv/oauth2/token which is a differnet URL/Resourse to what you are calling https://id.twitch.tv/oauth2/token/
The no slash on the end is important.