Skip to content

refactor: inject RefreshTokenManager into UserManager#119

Merged
Besthope-Official merged 1 commit into
mainfrom
refactor/di-in-refresh-token
Feb 3, 2026
Merged

refactor: inject RefreshTokenManager into UserManager#119
Besthope-Official merged 1 commit into
mainfrom
refactor/di-in-refresh-token

Conversation

@Besthope-Official
Copy link
Copy Markdown
Contributor

@Besthope-Official Besthope-Official commented Feb 3, 2026

Related Issue

Closes #114

Summary of Changes

Inject RefreshTokenManager via constructor instead of importing directly in event handler:

  • UserManager.__init__(): Accept refresh_manager parameter
  • on_after_reset_password(): Use injected self.refresh_manager instead of runtime imports
  • get_user_manager(): Inject RefreshTokenManager via Depends(get_refresh_token_manager)

Breaking Changes

N/A

Checklist

  • Issue discussion completed before opening PR
  • Scope is small and focused (single feature/fix)
  • All functions have full type annotations
  • Async/await used for all I/O operations
  • Tests added for new behaviors

🤖 Generated with Claude Code

@Besthope-Official Besthope-Official merged commit 5fdd208 into main Feb 3, 2026
3 checks passed
@Besthope-Official Besthope-Official deleted the refactor/di-in-refresh-token branch February 3, 2026 15:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

refactor: fix dependency injection in UserManager event handlers

1 participant