Invalid OAuth token error

Once you get the code from that auth flow, do you follow the the rest of the require steps explained in the documentation to exchange that code for an Access Token? Getting OAuth Access Tokens | Twitch Developers