Getting 410 Gone error on Twitch Authorization code grant flow

It’s

https://id.twitch.tv/oauth2/authorize?response_type=code

not

https://api.twitch.tv/kraken/oauth2/authorize?response_type=code

docs: Getting OAuth Access Tokens | Twitch Developers