github-oauth2

Github OAuth2 for Go

MIT License

Stars
6

Demo

Environment variable

{
  "client_id": "xxx",
  "client_secret": "xxx"
}

Usage

Example For JS

fetch("/api/oauth?code=xxx", {
  method: "GET",
}).then((res) => {
  console.log(res);
  // ...
});
Package Rankings
Top 8.17% on Proxy.golang.org