404 on token endpoint?

I’ve gotten my auth code just fine using the /authorize endpoint

https://id.twitch.tv/oauth2/authorize?client_id=<client_id>&redirect_uri=http://localhost&response_type=code&scope=

but when I use the provided code with the /token endpoint

https://id.twitch.tv/oauth2/token?client_id=<client_id>&client_secret=<client_secret>&code=<code>&grant_type=authorization_code&redirect_uri=http://localhost

I get a 404 with no additional data provided. Any ideas? Everything looks correct per the docs to me.

Are you sending the code request as GET or POST? It needs to be the latter.

1 Like

…are you freaking kidding me. I’m a web developer, this is supposed to be part of my job, lol… yep, browser wasn’t posting, that was it. It’s been a sluggish day…

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.