
Product
Rust Support in Socket Is Now Generally Available
Socket’s Rust and Cargo support is now generally available, providing dependency analysis and supply chain visibility for Rust projects.
twitter-pin
Advanced tools
A dead simple Twitter PIN-based authorization module.
The PIN-based OAuth flow is intended for applications which cannot access or embed a web browser in order to redirect the user to the authorization endpoint. Examples of such applications would be command-line applications, embedded systems, game consoles, and certain types of mobile apps.
Twitter / Developers / Documentation / OAuth / PIN-based authorization
npm install twitter-pin
The twitter-pin module should be initialzied with the consumerKey and
consumerSecret issued by Twitter when you register your Twitter
application. After registering click "manage
keys and access tokens" under the apps "Application Settings".
var twitterPin = require('twitter-pin')(consumerKey, consumerSecret)
twitterPin.getUrl(function (err, url) {
if (err) throw err
console.log('1) Open:', url)
console.log('2) Enter PIN:')
process.stdin.once('data', function (pin) {
twitterPin.authorize(pin.toString().trim(), function (err, result) {
if (err) throw err
console.log(result) // => { token: '...',
// secret: '...',
// user_id: 0,
// screen_name: '...' }
})
})
})
MIT
FAQs
A dead simple Twitter PIN-based authorization module
We found that twitter-pin demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.

Product
Socket’s Rust and Cargo support is now generally available, providing dependency analysis and supply chain visibility for Rust projects.

Security News
Chrome 144 introduces the Temporal API, a modern approach to date and time handling designed to fix long-standing issues with JavaScript’s Date object.

Research
Five coordinated Chrome extensions enable session hijacking and block security controls across enterprise HR and ERP platforms.