I did everything you said and got it to work. My issue now is when trying to create a channel redemption I am getting the error shown below.
I used the “OAuth authorization code flow” to get the access token.
axios.post('https://api.twitch.tv/helix/channel_points/custom_rewards?broadcaster_id={Channel_id}', {
headers: {
"Client-ID": client_id,
"Authorization": "Bearer " + access_token
},
}, {
"title": "game analysis 1v1",
"cost": 50000
}).then(function (response) {
console.log(response.data);
}).catch(function (error) {
console.log(error);
})
Error:
data: {
error: ‘Unauthorized’,
status: 401,
message: ‘OAuth token is missing’
}