9fafc38b79
* 🎨 deny auto switch
no issue
- deny auth switch after the blog was setup
- setup completed depends on the status of the user right now, see comments
* Updates from comments
- re-use statuses in user model
- update error message
24 lines
643 B
JavaScript
24 lines
643 B
JavaScript
var passport = require('./passport'),
|
|
authorize = require('./authorize'),
|
|
authenticate = require('./authenticate'),
|
|
sync = require('./sync'),
|
|
oauth = require('./oauth'),
|
|
validation = require('./validation'),
|
|
ghostAuth = require('./ghost-auth');
|
|
|
|
exports.init = function (options) {
|
|
oauth.init(options);
|
|
sync.init(options);
|
|
|
|
return passport.init(options)
|
|
.then(function (response) {
|
|
return {auth: response.passport};
|
|
});
|
|
};
|
|
|
|
exports.validation = validation;
|
|
exports.oauth = oauth;
|
|
exports.authorize = authorize;
|
|
exports.authenticate = authenticate;
|
|
exports.ghostAuth = ghostAuth;
|