Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/walinejs/auth

Social account auth service, support github, twitter, facebook, google
https://github.com/walinejs/auth

facebook google oauth2 serverless twitter vercel

Last synced: about 15 hours ago
JSON representation

Social account auth service, support github, twitter, facebook, google

Awesome Lists containing this project

README

        

# OAuth Center

The easiest way to add user login to websites with [GitHub][GitHub], [Twitter][Twitter], [Facebook][Facebook], [Google][Google], [Weibo][Weibo], [QQ][QQ].
## Deploy Your Own

Deploy your own Waline project with Vercel.

[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/import/project?template=https://github.com/walinejs/auth)

## How To Use
### GitHub

`GITHUB_ID` and `GITHUB_SECRET` enviroment variables are required.

- Redirect URL: `Login with GitHub`
- Get user info: `GET /github?code=`

### Twitter

`TWITTER_ID`, `TWITTER_SECRET`, `LEAN_ID` and `LEAN_KEY` environment variables are required. `LEAN_ID` and `LEAN_KEY` can got from .

- Redirect URL: `Login with Twitter`
- Get user info: `GET /twitter?oauth_token=&oauth_verifier`
### Facebook

`FACEBOOK_ID` and `FACEBOOK_SECRET` enviroment variables are required.

- Redirect URL: `Login with Facebook`
- Get user info: `GET /facebook?code=`

### Google

`GOOGLE_ID` and `GOOGLE_SECRET` enviroment variables are required.

- Redirect URL: `Login with Google`
- Get user info: `GET /google?code=`

### Weibo

`WEIBO_ID` and `WEIBO_SECRET` enviroment variables are required.

- Redirect URL: `Login with Weibo`
- Get user info: `GET /weibo?code=`

### QQ

`QQ_ID` and `QQ_SECRET` environment variables are required.

- Redirect URL: `Login with QQ`
- Get user info: `GET /qq?code=`

[GitHub]: https://github.com
[Twitter]: https://twitter.com
[Facebook]: https://facebook.com
[Google]: https://google.com
[Weibo]: https://weibo.com
[QQ]: https://qq.com