# bare-auth-twitter

> Stateless authentication with Twitter using Bare Auth

Latest version **1.0.2** (published 2015-08-03) · 0 weekly downloads

## Install

```sh
npm install bare-auth-twitter
pnpm add bare-auth-twitter
yarn add bare-auth-twitter
bun add bare-auth-twitter
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2015-08-03 |
| First published | 2015-07-27 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Matthew Mueller |
| Maintainers | mattmueller |
| Keywords | authentication, auth, twitter, stateless, bare auth |

## Links

- npm: https://www.npmjs.com/package/bare-auth-twitter
- Repository: https://github.com/lapwinglabs/bare-auth-twitter
- Homepage: https://github.com/lapwinglabs/bare-auth-twitter#readme
- Issues: https://github.com/lapwinglabs/bare-auth-twitter/issues
- npm.io page: https://npm.io/package/bare-auth-twitter

## Dependencies (3)

- [superagent](https://npm.io/package/superagent.md) ^1.2.0
- [object-assign](https://npm.io/package/object-assign.md) ^3.0.0
- [twitter-oauth-agent](https://npm.io/package/twitter-oauth-agent.md) ^1.0.0

## Alternatives

- [@clerk/clerk-expo](https://npm.io/package/@clerk/clerk-expo.md) — 133.6K weekly downloads
- [@pothos/plugin-authz](https://npm.io/package/@pothos/plugin-authz.md) — 12.4K weekly downloads
- [@bounded-sh/client](https://npm.io/package/@bounded-sh/client.md) — 3.2K weekly downloads
- [@luigi-project/plugin-auth-oauth2](https://npm.io/package/@luigi-project/plugin-auth-oauth2.md) — 2.3K weekly downloads
- [@nocobase/plugin-verification](https://npm.io/package/@nocobase/plugin-verification.md) — 2.0K weekly downloads

## Recent versions

- 1.0.2 (latest) — 2015-08-03
- 1.0.1 — 2015-07-27
- 1.0.0 — 2015-07-27

## README

# bare-auth-twitter

  Twitter authentication with [Bare Auth](https://github.com/lapwinglabs/bare-auth).

## Usage

**client.js:**

```js
var Twitter = require('twitter-bare-auth');
var twitter = Twitter()

twitter(function(err, profile) {
  if (err) throw err;
  console.log(profile);
});
```

**server.js (using express):**

```js
var Twitter = require('twitter-bare-auth');
var bodyParser = require('body-parser');
var express = require('express');
var cors = require('cors');

var app = module.exports = express();

app.use(cors());
app.use(bodyParser.json());

app.use(Twitter({
  consumer_key: process.env.CONSUMER_KEY,
  consumer_secret: process.env.CONSUMER_SECRET,
  // optionally include a 'sign' function to add support for JWT
}));

app.listen(5000);
```

## License

MIT

Copyright (c) 2015 Matthew Mueller &lt;matt@lapwinglabs.com&gt;

---
_Source: https://npm.io/package/bare-auth-twitter · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
