The UsersManagementService class handles core functionalities of user registration, login, token generation, user retrieval, and more, acting as the brain of the application.
User registration ensures secure storage of new users with encoded passwords and provides validations and error responses.
The login method authenticates users, generates a JWT, manages tokens, and allows role-based access control.
The UsersManagementService class also handles fetching, updating, deleting, and retrieving user information, ensuring secure and efficient processing.