To enable Github as a Auth provider you must first create an OAuth App in Github. On Github, go to Settings > Developer settings > OAuth apps and click New OAuth App.
Set a name, a homepage URL and the Authorization callback URL. The Authorization callback URL you should use is inside the Nhost console under Settings > Sign-methods > Github (see last image).
The Github OAuth app is now created. Finally create a Client Secret. Copy both Client ID and Client Secret and insert them in the Nhost console and click Save.
Your app is now configured with Github and users can now register and sign in with Github.
To register users, simply direct them to
<a href="https://backend-REPLACE.nhost.app/auth/providers/github"> Sign in with Github </a>