Skip to content
/ auth Public

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

Notifications You must be signed in to change notification settings

walinejs/auth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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=

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •