mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-26 20:34:02 +03:00
6d0f19ebfa
* 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
13 lines
440 B
JavaScript
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;
|