I believe that fcc has a new api for students to use that does not require all this key and technicalities (basically a simplified api for the twitch api). Check out these new instructions from the beta version (if you can’t find this challenge in the beta version, look under coding interview take-home projects at the bottom).
freeCodeCamp wiki info and example call
relevant twitch documentation