Ghost/core/server/services/auth/index.js

26 lines
519 B
JavaScript
Raw Normal View History

module.exports = {
get authorize() {
return require('./authorize');
},
get authenticate() {
return require('./authenticate');
},
get session() {
return require('./session');
},
/*
* TODO: Get rid of these when v0.1 is gone
*/
get init() {
return (options) => {
require('./oauth').init(options);
return require('./passport').init(options);
};
},
get oauth() {
return require('./oauth');
}
};