Skip to content

refactor(auth): split authentication package into layered architecture#82

Merged
devzeeh merged 10 commits into
developmentfrom
refactor/login
Jul 24, 2026
Merged

refactor(auth): split authentication package into layered architecture#82
devzeeh merged 10 commits into
developmentfrom
refactor/login

Conversation

@devzeeh

@devzeeh devzeeh commented Jul 24, 2026

Copy link
Copy Markdown
Owner
  • Separate handler, service, repository, model, validator, jwt, mailer, middleware, utils, and routes into individual files
  • Remove deprecated strings.Title in favor of golang.org/x/text/cases
  • Add mutex to otpStore to fix concurrent read/write race condition
  • Extract all SMTP logic into mailer.go to remove duplication
  • Add ValidateForgotPasswordRequest to catch invalid email input
  • Move RateLimitMiddleware to middleware package
  • Register all auth routes via auth.RegisterRoutes in main.go

dependabot Bot and others added 10 commits July 10, 2026 18:11
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.45.0 to 0.52.0.
- [Commits](golang/crypto@v0.45.0...v0.52.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-version: 0.52.0
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
…x/crypto-0.52.0

deps: bump golang.org/x/crypto from 0.45.0 to 0.52.0
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.52.0 to 0.54.0.
- [Commits](golang/crypto@v0.52.0...v0.54.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-version: 0.54.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
…x/crypto-0.54.0

deps: bump golang.org/x/crypto from 0.52.0 to 0.54.0
Project is in v0.0.1-rc status.
- Separate handler, service, repository, model, validator, jwt, mailer, middleware, utils, and routes into individual files
- Remove deprecated strings.Title in favor of golang.org/x/text/cases
- Add mutex to otpStore to fix concurrent read/write race condition
- Extract all SMTP logic into mailer.go to remove duplication
- Add ValidateForgotPasswordRequest to catch invalid email input
- Move RateLimitMiddleware to middleware package
- Register all auth routes via auth.RegisterRoutes in main.go
@devzeeh
devzeeh merged commit 9f16508 into development Jul 24, 2026
1 of 2 checks passed
@devzeeh
devzeeh deleted the refactor/login branch July 24, 2026 00:50
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.

1 participant