Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/xjh22222228/github-oauth2

Github OAuth2 for Go
https://github.com/xjh22222228/github-oauth2

oauth2 serverless vercel

Last synced: about 2 months ago
JSON representation

Github OAuth2 for Go

Awesome Lists containing this project

README

        



Github OAuth2


Serverless For Vercel








## Demo

- [https://github-oauth-opal.vercel.app](https://github-oauth-opal.vercel.app)
- [https://github-oauth-opal.vercel.app/api/oauth](https://github-oauth-opal.vercel.app/api/oauth)
- [https://github-oauth-opal.vercel.app/api/user](https://github-oauth-opal.vercel.app/api/user)

## Environment variable

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

## Usage

- Fork
- Make sure to make the warehouse private
- https://github.com/apps/vercel
- ...

## Example For JS

```js
fetch("/api/oauth?code=xxx", {
method: "GET",
}).then((res) => {
console.log(res);
// ...
});
```