Your redirect URI (that you are sending people to) doesn’t look right, since it start with https://www.twitch.tv/login instead of something like
https://id.twitch.tv/oauth2/authorize?client_id=hozgh446gdilj5knsrsxxz8tahr3koz&redirect_uri=https%3A%2F%2Fbarrycarlyon.github.io%2Ftwitch_misc%2Fauthentication%2Fimplicit_auth%2F&response_type=token&scope=user:read:email
as per my implicit auth example https://barrycarlyon.github.io/twitch_misc/authentication/implicit_auth/
Your PHP(?) code does look correct however. I’m assuming you are using the Users reutned oAuth token to call the users API (not speicifing a ID or login just the token) as the user lookup code isn’t in your screenshot.
At time of writing my implicit oAuth example is working. So there is a code fault somewhere yourside.