1
0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-01 15:29:19 +03:00
Ghost/core/server/services/auth/authenticate.js
2019-09-11 19:40:48 +02:00

12 lines
367 B
JavaScript

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;