Github OAuth2
Serverless For Vercel
- https://github-oauth-opal.vercel.app
- https://github-oauth-opal.vercel.app/api/oauth
- https://github-oauth-opal.vercel.app/api/user
{
"client_id": "xxx",
"client_secret": "xxx"
}
- Fork
- Make sure to make the warehouse private
- https://github.com/apps/vercel
- ...
fetch("/api/oauth?code=xxx", {
method: "GET",
}).then((res) => {
console.log(res);
// ...
});