Socket
Socket
Sign inDemoInstall

login-with-twitter

Package Overview
Dependencies
47
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    login-with-twitter

Login with Twitter. OAuth without the nonsense.


Version published
Weekly downloads
767
increased by23.31%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

login-with-twitter travis npm downloads

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.

Keywords

FAQs

Last updated on 30 Jan 2017

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc