Skip to content

dashboard: Add unit tests for API client error handling and token refresh #803

Description

@ONEONUORA

Description

Verify HTTP 401 response triggers token refresh logic in API utility.

Files to Edit/Create

  • dashboard/lib/api.ts

Acceptance Criteria

  • Mock fetch returning 401, verify refresh endpoint called, and assert original request retried.

Guidance / Hints

Intercept fetch calls.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Stellar WaveIssues in the Stellar wave program

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions