2016-09-30 14:45:59 +03:00
|
|
|
var passport = require('./passport'),
|
|
|
|
authorize = require('./authorize'),
|
|
|
|
authenticate = require('./authenticate'),
|
2017-09-18 15:01:58 +03:00
|
|
|
oauth = require('./oauth');
|
2016-09-30 14:45:59 +03:00
|
|
|
|
|
|
|
exports.init = function (options) {
|
2017-02-23 21:04:24 +03:00
|
|
|
oauth.init(options);
|
2017-09-18 15:01:58 +03:00
|
|
|
return passport.init(options);
|
2016-09-30 14:45:59 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
exports.oauth = oauth;
|
|
|
|
exports.authorize = authorize;
|
|
|
|
exports.authenticate = authenticate;
|