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

35 lines
658 B
JavaScript
Raw Normal View History

module.exports = {
get authorize() {
return require('./authorize');
},
get authenticate() {
return require('./authenticate');
},
get session() {
return require('./session');
},
get setup() {
return require('./setup');
},
get passwordreset() {
return require('./passwordreset');
},
/*
* 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');
}
};