So my code worked what I needed to do was add https://github.com/settings/developers → OAuth Apps → your app.
https://github.com/settings/developers
I created an app somewhere else in github