Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/xjh22222228/github-oauth2
- Owner: xjh22222228
- License: mit
- Created: 2021-03-26T00:53:59.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2024-06-05T03:38:17.000Z (7 months ago)
- Last Synced: 2024-11-02T07:20:36.019Z (about 2 months ago)
- Topics: oauth2, serverless, vercel
- Language: Go
- Homepage: https://github-oauth2-indol.vercel.app
- Size: 28.3 KB
- Stars: 6
- Watchers: 3
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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);
// ...
});
```