proxy github oauth token requests to preserve client_secret for client-side apps, such as browser extensions and static pages.
Create a config.json
file in the same directory as server.js
which looks like this:
{
"client_id":"[your github application client id]",
"client_secret":"[your github application client secret]"
}
npm start
Then make an application/json
POST request to the server containing the temporary code github gave you:
{
"code":"[your code]"
}