Skip to content

Implement user state management with Zustand and session persistenceΒ #23

Closed as not planned

Description

@CherryClairette

πŸ“‹ Description

Create a centralized user/auth store with persistent session support and explicit auth state transitions.

βœ… Acceptance Criteria

  • Zustand store includes user profile, auth status, role/plan, and token metadata.
  • Session persistence works across page reloads.
  • Explicit states exist for unauthenticated, authenticating, authenticated, and error.
  • Store reset utility exists for logout/session invalidation.

πŸ”— Prerequisite Issues

DoD

  • App restores valid session on refresh without flicker loops.
  • Invalid session rehydrates safely to logged-out state.
  • Components consume auth store without duplicate local auth state.
  • Store shape and actions are documented.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureExtra attention is needed

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions