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: 5 months ago
JSON representation
Social account auth service, support github, twitter, facebook, google
- Host: GitHub
- URL: https://github.com/walinejs/auth
- Owner: walinejs
- Created: 2021-01-16T13:31:33.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2025-07-28T23:32:19.000Z (5 months ago)
- Last Synced: 2025-07-29T01:15:57.184Z (5 months ago)
- Topics: facebook, google, oauth2, serverless, twitter, vercel
- Language: JavaScript
- Homepage: auth-center.vercel.app
- Size: 35.2 KB
- Stars: 16
- Watchers: 4
- Forks: 10
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
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.
[](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