Browse Source

fix(core): Invoke SessionCacheStrategy lifecycle hooks

Hendrik Depauw 4 years ago
parent
commit
c3c5888569
1 changed files with 6 additions and 1 deletions
  1. 6 1
      packages/core/src/config/config.module.ts

+ 6 - 1
packages/core/src/config/config.module.ts

@@ -84,7 +84,11 @@ export class ConfigModule implements OnApplicationBootstrap, OnApplicationShutdo
             productVariantPriceCalculationStrategy,
             stockDisplayStrategy,
         } = this.configService.catalogOptions;
-        const { adminAuthenticationStrategy, shopAuthenticationStrategy } = this.configService.authOptions;
+        const {
+            adminAuthenticationStrategy,
+            shopAuthenticationStrategy,
+            sessionCacheStrategy,
+        } = this.configService.authOptions;
         const { taxZoneStrategy } = this.configService.taxOptions;
         const { jobQueueStrategy } = this.configService.jobQueueOptions;
         const {
@@ -101,6 +105,7 @@ export class ConfigModule implements OnApplicationBootstrap, OnApplicationShutdo
         return [
             ...adminAuthenticationStrategy,
             ...shopAuthenticationStrategy,
+            sessionCacheStrategy,
             assetNamingStrategy,
             assetPreviewStrategy,
             assetStorageStrategy,