Ghost/core/server/services/auth/authenticate.js
Rishabh Garg 6d0f19ebfa
🏗 Migrated scheduler to work with v2 API (#11142)
* Updated scheduler to use v2 API by default

* Updated scheduling for post/page resource types

* Extended base method to take options param with token and jwt options

* Updated token expiration to 6 hours after publish/blog start time to allow retries
2019-09-23 21:42:53 +05:30

13 lines
440 B
JavaScript

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