0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-04-08 02:52:39 -05:00

Renamed authentication middleware to createSessionFromToken

no issue

- This rename comes in to describe better what actually happens behind the middleware instead of catch-all "authentication"
This commit is contained in:
Nazar Gargol 2019-11-28 14:56:57 +07:00 committed by Fabien O'Carroll
parent 0be2c21f68
commit 3d49f3ed15
2 changed files with 2 additions and 2 deletions

View file

@ -77,7 +77,7 @@ module.exports = {
constants.ONE_HOUR_S
)
],
authentication: [
createSessionFromToken: [
getMemberDataFromSession,
exchangeTokenForSession,
decorateResponse

View file

@ -123,7 +123,7 @@ module.exports = function setupSiteApp(options = {}) {
siteApp.delete('/members/ssr', membersMiddleware.deleteSession);
siteApp.post('/members/webhooks/stripe', membersMiddleware.stripeWebhooks);
siteApp.use(membersMiddleware.authentication);
siteApp.use(membersMiddleware.createSessionFromToken);
// Theme middleware
// This should happen AFTER any shared assets are served, as it only changes things to do with templates