refactor(jans-cedarling): consolidate JwtService initialization logic into the module #9945
Labels
comp-jans-cedarling
Touching folder /jans-cedarling
enhancement
kind-enhancement
Issue or PR is an enhancement to an existing functionality
Is your feature request related to a problem? Please describe.
In #9870, the initialization logic for
JwtService
was moved outside its module, resulting in a less modular and more tangled initialization process. This not only makesJwtService
harder to maintain, but also introduces coupling between multiple modules. Whenever the constructor forJwtService
changes, those changes cascade across theinit
andcommon
modules, causing unintended dependencies and increasing the complexity of modifications.Describe the solution you'd like
JwtService
initialization logic should reside entirely within its own module. This ensures that other modules are not responsible for managing howJwtService
is set up, reducing unnecessary coupling.JwtService
that other modules can rely on for interaction. This interface will abstract the initialization details, promoting decoupling. This means other modules will be insulated from changes inJwtService
's constructor or internal setup, allowing for easier modifications and better separation of concerns.The text was updated successfully, but these errors were encountered: