Skip to content

Refactor security operations into dedicated SecurityService #969

Description

@nanaf6203-bit

Problem

Password and token management logic is embedded in AuthService instead of a dedicated SecurityService.

Expected Outcome

Dedicated SecurityService handling all cryptographic and security operations.

Acceptance Criteria

  • Create SecurityService with DI and config
  • Move JWT operations from AuthService
  • Move password history management
  • Move 2FA operations

Files Affected

New src/auth/services/security.service.ts, src/auth/auth.service.ts

Difficulty

Easy

Estimated Effort

Small (2-3 days)

Labels

refactoring, security, architecture

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions