Skip to content

Tests: Add coverage for user, auth, RBAC #28

@sugan0tech

Description

@sugan0tech

Summary\n- Add tests covering user model/store, authentication flows, middleware, and RBAC.\n\nScope\n- Unit: password hashing/verification, JWT utilities, middleware decision logic (cookie vs bearer).\n- Integration (API-level): login success/failure, me, protected route access by role.\n\nReferences\n- Epic: #23\n- Middleware and handlers introduced in prior sub-issues.\n\nAcceptance Criteria\n- Tests run via go test ./... and pass locally.\n- Coverage for happy-path and common failure cases (401, 403).

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions