# passport-moves

> Moves authentication strategy for Passport

Latest version **0.0.1** (published 2015-01-14) · 0 weekly downloads

## Install

```sh
npm install passport-moves
pnpm add passport-moves
yarn add passport-moves
bun add passport-moves
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2015-01-14 |
| First published | 2015-01-14 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | ~0.10.x |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Bill Glover |
| Maintainers | billglover |
| Keywords | passport, moves, auth, authentication |

## Links

- npm: https://www.npmjs.com/package/passport-moves
- Repository: https://github.com/billglover/passport-moves
- Issues: https://github.com/billglover/passport-moves/issues
- npm.io page: https://npm.io/package/passport-moves

## Dependencies (2)

- [pkginfo](https://npm.io/package/pkginfo.md) 0.3.x
- [passport-oauth2](https://npm.io/package/passport-oauth2.md) 1.x.x

## 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

- 0.0.1 (latest) — 2015-01-14

## README

# passport-moves

[![Build Status](https://travis-ci.org/billglover/passport-moves.svg?branch=master)](https://travis-ci.org/billglover/passport-moves)

[Passport](http://passportjs.org/) strategy for authenticating with [Moves](https://www.moves-app.com/)
using the OAuth 2.0 API.

This module lets you authenticate using Facebook in your Node.js applications.
By plugging into Passport, Facebook authentication can be easily and
unobtrusively integrated into [Express](http://expressjs.com/).

## Install

    $ npm install passport-moves

## Usage

#### Configure Strategy

The Moves authentication strategy authenticates users using the Moves mobile 
app and OAuth 2.0 tokens.  The strategy requires a `verify` callback, which
accepts these credentials and calls `done` providing a user, as well as
`options` specifying a clientID, a clientSecret, and a callback URL.

    passport.use(new MovesStrategy({
        clientID: 'YOUR_CLIENT_ID',
        clientSecret: 'YOUR_CLIENT_SECRET',
        callbackURL: 'http://your.site/auth/callback'
      },
      function(accessToken, refreshToken, profile, done) {
        process.nextTick(function() {
          return done(null, profile);
        });
      }
    ));

#### Authenticate Requests

Use `passport.authenticate()`, specifying the `'moves'` strategy, to
authenticate requests.

For example, as route middleware in an [Express](http://expressjs.com/)
application:

    app.get('/moves/auth', 
      passport.authenticate('moves', {scope: ['default', 'activity', 'location']}));

    app.get('/moves/auth/callback', 
      passport.authenticate('moves', { successRedirect: '/success', failureRedirect: '/failure' }));

#### Profile Fields

The Moves profile is very sparse and only the `profile.id` field is populated.

## Tests

    $ npm install
    $ npm test

## License

[The MIT License](http://opensource.org/licenses/MIT)

## Acknowledgements
I'd like to thank [Jared Hanson](https://github.com/jaredhanson) for his work on the [passport-facebook](https://github.com/jaredhanson/passport-facebook) and [passport-instagram](https://github.com/jaredhanson/passport-instagram) strategies. In many places, this module re-uses his work.

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