18 lines
435 B
JavaScript
18 lines
435 B
JavaScript
|
var passport = require('./passport'),
|
||
|
authorize = require('./authorize'),
|
||
|
authenticate = require('./authenticate'),
|
||
|
oauth = require('./oauth');
|
||
|
|
||
|
exports.init = function (options) {
|
||
|
oauth.init();
|
||
|
|
||
|
return passport.init(options)
|
||
|
.then(function (response) {
|
||
|
return {auth: response.passport};
|
||
|
});
|
||
|
};
|
||
|
|
||
|
exports.oauth = oauth;
|
||
|
exports.authorize = authorize;
|
||
|
exports.authenticate = authenticate;
|