Just wanted to point out some things to fix in the authentication documentation for the device code flow (DCF) specifically:
-
For the “Obtaining the refresh token/access token pair” section here, it says the
grant_typemust be set todevice_code, but that’s incorrect, it needs to be set tourn:ietf:params:oauth:grant-type:device_codelike in the curl code example right below that -
In the Refreshing Access Tokens documentation,
client_secretis marked as required. However, if using a refresh token from DCF,client_secretis not required, so there should be some clarifcation there specifically for DCF. -
This is more of a question of how redirects should work in DCF. In the Twitch dev console, an OAuth Redirect URL is required for a developer app. However, this doesn’t seem to be used at all in the DCF, instead users are redirected to https://www.twitch.tv/settings/connections after authorization. Is this how it’s meant to work? Because it would be nice to instead redirect to a URL on my website that simply says something along the lines of “Authentication Successful! Please return to your device.” or even some kind onboarding page for next steps after authentication.