passport-learningstudio

Install

$ npm install passport-learningstudio

Usage

var passport = require('passport')
  , LearningStudioStrategy = require('passport-learningstudio').LearningStudioStrategy;

passport.use(new LearningStudioStrategy({
    clientID: application_id,
    clientSecret: shared_secret,
    callbackURL: "http://127.0.0.1:3000/auth/learningstudio/callback"
  },
  function(accessToken, refreshToken, profile, done) {
    User.findOrCreate("...", function(err, user) {
      if (err) { return done(err); }
      done(null, user);
    });
  }
));

Tests

$ npm install
$ npm test

Credits

License

The MIT License

Derived from the work of Jared Hanson.

Supported by

SEARCH FOR STRATEGIES

0STRATEGIES