Create Auth Store (Frontend) #7

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

Priority: High
Estimated Time: 2 hours

Tasks:

  • Setup Zustand store for authentication
  • Implement login/logout functions
  • Add token persistence (localStorage)
  • Create auth hooks

Files to Create:

  • frontend/src/store/authStore.ts
  • frontend/src/hooks/useAuth.ts

Acceptance Criteria:

  • Auth state persists across page reloads
  • Login updates auth state
  • Logout clears auth state
**Priority:** High **Estimated Time:** 2 hours **Tasks:** - Setup Zustand store for authentication - Implement login/logout functions - Add token persistence (localStorage) - Create auth hooks **Files to Create:** - `frontend/src/store/authStore.ts` - `frontend/src/hooks/useAuth.ts` **Acceptance Criteria:** - [ ] Auth state persists across page reloads - [ ] Login updates auth state - [ ] Logout clears auth state
ilker added this to the Milestone 1: Foundation & Authentication milestone 2026-02-04 22:43:05 +01:00
ilker added this to the VictoriaLogs Manager project 2026-02-04 22:52:07 +01:00
ilker closed this issue 2026-02-04 22:52:14 +01:00
ilker moved this to Done in VictoriaLogs Manager on 2026-02-04 22:55:46 +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#7