Parameter redirect_uri does not match registered URI

Did you set the redirect_uri to https://mydomain.com/auth/ in the Application Settings on Twitch?