Skip to content

Latest commit

 

History

History
58 lines (36 loc) · 1.9 KB

README.md

File metadata and controls

58 lines (36 loc) · 1.9 KB

OAuth Center

The easiest way to add user login to websites with GitHub, Twitter, Facebook, Google, Weibo, QQ.

Deploy Your Own

Deploy your own Waline project with Vercel.

Deploy with Vercel

How To Use

GitHub

GITHUB_ID and GITHUB_SECRET enviroment variables are required.

  • Redirect URL: <a href="<serverUrl>/github?redirect=&state=">Login with GitHub</a>
  • Get user info: GET <serverUrl>/github?code=

Twitter

TWITTER_ID, TWITTER_SECRET, LEAN_ID and LEAN_KEY environment variables are required. LEAN_ID and LEAN_KEY can got from https://leancloud.app.

  • Redirect URL: <a href="<serverUrl>/twitter?redirect=&state=">Login with Twitter</a>
  • Get user info: GET <serverUrl>/twitter?oauth_token=&oauth_verifier

Facebook

FACEBOOK_ID and FACEBOOK_SECRET enviroment variables are required.

  • Redirect URL: <a href="<serverUrl>/facebook?redirect=&state=">Login with Facebook</a>
  • Get user info: GET <serverUrl>/facebook?code=

Google

GOOGLE_ID and GOOGLE_SECRET enviroment variables are required.

  • Redirect URL: <a href="<serverUrl>/google?redirect=&state=">Login with Google</a>
  • Get user info: GET <serverUrl>/google?code=

Weibo

WEIBO_ID and WEIBO_SECRET enviroment variables are required.

  • Redirect URL: <a href="<serverUrl>/weibo?redirect=&state=">Login with Weibo</a>
  • Get user info: GET <serverUrl>/weibo?code=

QQ

QQ_ID and QQ_SECRET environment variables are required.

  • Redirect URL: <a href="<serverUrl>/qq?redirect=&state=">Login with QQ</a>
  • Get user info: GET <serverUrl>/qq?code=