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

12 lines
367 B
JavaScript
Raw Normal View History

const session = require('./session');
const apiKeyAuth = require('./api-key');
const members = require('./members');
const authenticate = {
authenticateAdminApi: [apiKeyAuth.admin.authenticate, session.authenticate],
authenticateContentApi: [apiKeyAuth.content.authenticateContentApiKey, members.authenticateMembersToken]
};
module.exports = authenticate;