Skip to content

Login with Twitter. OAuth without the nonsense.

License

Notifications You must be signed in to change notification settings

avo7/login-with-twitter

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

login-with-twitter travis npm downloads javascript style guide

Login with Twitter. OAuth without the nonsense.

Features

This module is designed to be the lightest possible wrapper on Twitter OAuth.

All this in < 100 lines of code.

install

npm install login-with-twitter

usage

Set up two routes on your web sever. We'll call them /twitter and /twitter/callback but they can be named anything.

Initialize this module:

const LoginWithTwitter = require('login-with-twitter')

const tw = LoginWithTwitter({
  consumerKey: '<your consumer key>',
  consumerSecret: '<your consumer secret>',
  callbackUrl: 'https://example.com/twitter/callback'
})

TODO

license

MIT. Copyright (c) Feross Aboukhadijeh.

About

Login with Twitter. OAuth without the nonsense.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%