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:
parent
0be2c21f68
commit
3d49f3ed15
2 changed files with 2 additions and 2 deletions
|
@ -77,7 +77,7 @@ module.exports = {
|
|||
constants.ONE_HOUR_S
|
||||
)
|
||||
],
|
||||
authentication: [
|
||||
createSessionFromToken: [
|
||||
getMemberDataFromSession,
|
||||
exchangeTokenForSession,
|
||||
decorateResponse
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue