Implement Authentication Handlers #3

Closed
opened 2026-02-04 22:43:05 +01:00 by ilker · 0 comments
Owner

Priority: High
Estimated Time: 3-4 hours

Tasks:

  • Create login handler (username/password)
  • Create refresh token handler
  • Create "get current user" handler
  • Implement password hashing with bcrypt
  • Add input validation

Files to Create:

  • backend/internal/api/handlers/auth.go
  • backend/internal/services/auth_service.go

Acceptance Criteria:

  • POST /api/v1/auth/login returns JWT token
  • POST /api/v1/auth/refresh refreshes token
  • GET /api/v1/auth/me returns current user
  • Passwords are securely hashed
**Priority:** High **Estimated Time:** 3-4 hours **Tasks:** - Create login handler (username/password) - Create refresh token handler - Create "get current user" handler - Implement password hashing with bcrypt - Add input validation **Files to Create:** - `backend/internal/api/handlers/auth.go` - `backend/internal/services/auth_service.go` **Acceptance Criteria:** - [ ] POST /api/v1/auth/login returns JWT token - [ ] POST /api/v1/auth/refresh refreshes token - [ ] GET /api/v1/auth/me returns current user - [ ] Passwords are securely hashed
ilker added this to the Milestone 1: Foundation & Authentication milestone 2026-02-04 22:43:05 +01:00
ilker closed this issue 2026-02-04 22:48:56 +01:00
ilker added this to the VictoriaLogs Manager project 2026-02-04 22:51:55 +01:00
ilker moved this to Done in VictoriaLogs Manager on 2026-02-04 22:52:19 +01:00
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: ilker/victorialogs-manager#3