Listed are very basic demos for using Netlify's authentication provider service to send a signed request to GitHub's OAuth server and receive an access token in return. Feel free to look at whichever version is most comfortable for you.
Full setup instructions can be found in the Netlify OAuth provider docs.