]> Piment Noir Git Repositories - e-mobility-charging-stations-simulator.git/commit
fix(lifecycle): clear auth service on template reload and station reset
authorJérôme Benoit <jerome.benoit@sap.com>
Sat, 21 Mar 2026 19:26:19 +0000 (20:26 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Sat, 21 Mar 2026 19:26:19 +0000 (20:26 +0100)
commit3e8dea439e02e67a1a1ac32eb9da4ecff62ba24a
treece4c0a6807174a1633dcd0c4a883c06fc577b2dd
parentd6e48eb6e7c4bea13fc5e64ebcae5dab8412d14c
fix(lifecycle): clear auth service on template reload and station reset

Auth service instance was persisting across template reloads and
station resets, causing stale adapters if OCPP version changed.

- Add OCPPAuthServiceFactory.clearInstance() before initialize()
  in template file change handler
- Add OCPPAuthServiceFactory.clearInstance() before initialize()
  in reset() method
src/charging-station/ChargingStation.ts