To improve the code quality and maintainability, a refactor of the OktaAuthenticator class and its dependent classes is necessary. The current implementation suffers from high cognitive complexity, lack of unit tests, and non-standard field naming conventions. Additionally, having multiple classes within a single file.
The goals of the refactor are:
Enhance object-oriented design principles.
Reduce cognitive complexity.
Introduce unit tests to achieve 100% coverage.
Enforce naming conventions for fields and methods.
To improve the code quality and maintainability, a refactor of the OktaAuthenticator class and its dependent classes is necessary. The current implementation suffers from high cognitive complexity, lack of unit tests, and non-standard field naming conventions. Additionally, having multiple classes within a single file.
The goals of the refactor are:
Out of scope: