1.0.0 • Published 9 years ago

passport-parse-session v1.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
9 years ago

passport-parse-session

A passport strategy to use Parse session tokens for authentication.

Usage

Authenticated requests must have a session_token key in their body.

var Parse = require('parse/node');
var ParseSessionStrategy = require('passport-parse-session');

// Set Parse keys
Parse.initialize('app id', 'javascript key');

// Create a new strategy
passport.use(new ParseSessionStrategy({ client: Parse }));

// Use the strategy to authenticate requests
app.use(passport.authenticate('parseSession'));

License

MIT